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)?