Thanks, your right, looking into muparser release note it seems that they removed binary logics in version 2.0. I'll do this with a functor.

Thanks again for the answer.

Le 22/06/2016 13:59, Jordi Inglada a écrit :
Manuel Grizonnet <[email protected]> wrote:
Hi,

I would like to know if someone have already used the BandMath
application to perform bitwise operation on images?

I would like to do something like 'im1b1 and 00000010' to interpret
image value as a bitset and create binary mask using logical
operators.

I've tried several syntax (&&, and 0b...) and search also in muparser
documentation but without success for now.

We used to do that in the iota2 processing chain, but recent versions of 
Muparser don't provide binary logic anymore. MuparserX is supposed to have 
them, but we never managed to get past parsing error messages.

So we do integer math. In our case, we can just use parity of the integer 
corresponding to the underlying binary representation, but that's ugly.

So, no solution for you from us, but a lot of compassion ;).

Jordi

Regards,

--
Manuel GRIZONNET

--

--
Manuel GRIZONNET

--
--
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.

Reply via email to