porting a statement from C++ to Java

asked 2015-08-19 02:47:22 -0600

Saghir A. Khatri gravatar image

hi all! I have following OpenCv mask statment, which i am unable to convert o my Java android. It is in C++

im1 = cmyk[3].mul(1 - cmyk[1]) > 0.25;

cmyk[1] and im1 are Mat objects.i get following error

The operator - is undefined for the argument type(s) int, Mat

Kindly point me to to right direction. thanks

edit retag flag offensive close merge delete