Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

C++ Mat.at<uchar> to Java

Hi I am trying to convert some C++ OpenCV code to Java OpenCV code. I am trying to convert the following lines to Java:

for(int i = 0; i < image.rows; i++){
  for(int j = 0; j < image.cols; j++){         
    uchar p = im.at<uchar>(i, j);
  }
}

Can anyone help me out in explaining what the C++ code is doing and how to convert it? Thanks in advance