Ask Your Question

Mark1's profile - activity

2017-06-28 12:23:03 -0500 received badge  Scholar (source)
2017-06-28 12:12:44 -0500 asked a question ORB feature matching in Java

So i am currently working on converting an opencv program in c++ to java to do 2d feature matching. I've been having trouble understanding what some of the lines are doing and how i might be able to find their java equivalent, any help would be appreciated thanks!

    // Calculate the ORB descriptor based on the keypoint
    Ptr<Feature2D> orb_feat = ORB::create();
    Mat descriptors;
    orb_feat->compute(input, keypoints, descriptors);
2017-06-27 14:36:50 -0500 received badge  Supporter (source)
2017-06-27 14:36:30 -0500 received badge  Student (source)
2017-06-27 14:36:03 -0500 asked a question 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