Jonathan Guinet <[email protected]> wrote:
> 
> Hi
>
> OTB paser which wrap MuParser  class defines some functions in particular the 
> ndvi function
>
> in order to avoid numerical instabilites i think a test is made with "nir + 
> red " value
> http://hg.orfeo-toolbox.org/OTB/file/80aea183436c/Code/Common/otbParser.cxx#l211
>
> if the test fails 0 value is associated to the pixel
>
> http://hg.orfeo-toolbox.org/OTB/file/80aea183436c/Code/Common/otbParser.cxx#l213
>
> to my opinion another value should be affected to the pixel, because a 0 
> valued ndvi has a meaning,
>
> in suggest to assign a value outside [-1,1] interval for those pixels
>
> What do you think about that ?

I don't agree. If vcl_abs(r + niri) < 1E-6, that means that there is no 
vegetation, so ndvi=0 is OK.

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to