Hi GiNN,
I'm not sure that it is possible with such a simple expression, as the doc
said :
*For instance, it is not possible to add vectors of different dimensions
(this implies the addition of a row vector with a column vector),or add a
scalar to a vector or a matrix, or divide two vectors, and so on...Thus, it
is important to remember that a pixel of n components is always represented
as a row vector.*
However, if you know the number of bands in your image, and if d and e are
scalars, you might try to use vector syntax in your expression like that :
im1*{d^2,d^2,d^2,d^2}/{cos e, cos e, cos e, cos e}
Arnaud
Le mercredi 22 avril 2015 21:02:15 UTC+2, GiNN a écrit :
>
>
> I have three-band images and I want to apply the same expression to each
> band and get a three-bad output.
> I am just starting with OTB and Monteverdi. Used installer on a 64 bit W7
> machine.
>
> The expression is very simple: output_pixel = (input_pixel*d^2)/cos e
>
> I read the cookbook recipe, and concluded BandmahX is what I need. But I
> am not sure how to formulate the expression so that the application goes
> through all pixels in all three bands.
>
> Any assistance is greatly appreciated.
>
> Gin
>
--
--
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/d/optout.