Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

C++ code equivalent in java

Hi,

I'm a java developer and I want convert the following code from c++ to java

mask= new Scalar::all(0);

Mat_<uchar>::iterator itMask= mask.begin<uchar>();

Mat_<uchar>::iterator end= mask.end<uchar>();

for( ; itMask!=end; ++itMask)

    if(itMask==255)
           pointsInterest.push_back(itMask.pos());

I'm using opencv-249.jar

Would you please help me?

Thanks alot