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