c++ - Logical operations in OpenCV from Java -
in opencv's c++ api, 1 can elementwise boolean operations (and, or, xor, not) using syntax this:
mat a, b; mat c = & b;
and others. know there no operator overloading in java; i'm looking how java api exposes same functionality exposed in c++ in form. i've found core.bitwise_*
functions already, per bit, not per matrix element.
this operator overloading. in java operator overloading not supported. if require can introduce method this.
for example -
mat a, b; mat c; c = mat.dooperation(a, b);
where dooperation() static method in mat
-
public static dooperation(mat a, mat b){ //do whatever want }
Comments
Post a Comment