Browse Source

i.vi: fix PVI formula (#1985)

* Fix wrong mathematical formula in the PVI index computation in i.vi

* fix #1984
Ondrej Pesek 3 years ago
parent
commit
98f11bf568
1 changed files with 1 additions and 1 deletions
  1. 1 1
      imagery/i.vi/pvi.c

+ 1 - 1
imagery/i.vi/pvi.c

@@ -17,7 +17,7 @@ double p_vi(double redchan, double nirchan)
 	result = -1.0;
     }
     else {
-	result = (sin(1) * nirchan) / (cos(1) * redchan);
+	result = (sin(1) * nirchan) - (cos(1) * redchan);
     }
     return result;
 }