We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to use the pyrMeanShiftFiltering function from OpenCV. So far, I know that there's two different types of arguments for that function. One requires two mat and two double, and the other function requires 2 mat, 2 doubles, 1 int, and 1 term criteria.
imgproc.pyrMeanShiftFiltering( mat, mat, double, double, int, termcriteria);
I am trying to use the second one, but I don't know how to use the term criteria. Can someone explain how term criteria works ( how I call it, set it up, and use it)?
Answers
Bump for visibility. I'm working on this project as well. The problem we're actually having is that after this function our output image is cut off at the bottom, about 3/4 or so of the way down. Otherwise the image seems to work well. We're not sure what's causing the issue. We've experimented with 3D and 4D Mats to no avail. The function requires a 3D Mat to work, so we're not sure if we're handling things correctly.
I don't do Kinect / OpenCV projects right now, but if you post the code for a minimal example of your problem you might get more feedback from the forum.
I can't quite tell from your question, but if you are having cropping problems, sometimes in Kinect projects this has to do with different camera aspect ratios and registering them, e.g.