Bitshift operations on Mat (in Java)
The Java bindings have Core.bitwise_and()
, Core.bitwise_or()
, and Core.bitwise_xor()
, but what about bit-shifting? Is it possible to bitshift a Mat without iterating through its entries?
I've seen C++ code before that looks like:
Mat mat8uc4 = merge((mat32sc1 >> 16) & 0xFF, (mat32sc1 >> 8) & 0xFF, (mat32sc1 >> 0) & 0xFF,(mat32sc1 >> 24) & 0xFF);
and I want to do the same thing in Java.