Skip to content

Commit

Permalink
i.vi: fix PVI formula (#1985)
Browse files Browse the repository at this point in the history
* Fix wrong mathematical formula in the PVI index computation in i.vi

* fix #1984
  • Loading branch information
pesekon2 authored Nov 28, 2021
1 parent 8ae6631 commit 98f11bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagery/i.vi/pvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 98f11bf

Please sign in to comment.