Proper #include for function [closed]
Hello, I'm running one of the 4.0.0 dev builds for OpenCV and I had a question. I think #include highgui.h used to take care of it, but now that doesn't seem to be helping since CV_CALIB_CB_ADAPTIVE_THRESH and CV_CALIB_CB_FILTER_QUADS both are saying undefined and I'm not sure what the proper include would be. I would definitely appreciate anyone who could tell me what file I need to include in this version to get it to no longer be undefined, thanks :)
please note , that the CV_ prefixes were dropped (whith a few exceptions for CV_8U and similar) with opencv3.0 already.
to access most of those, you'd have to use the deprecated c-api headers, like "opencv2/calib3d_c.h"
(simply try without, like cv::CALIB_CB_ADAPTIVE)
and you should use
now.
Okay, so doing the highgui.hpp thing fixed that, but then made my CV_BGR2GRAY, CV_TERMCRIT_EPS, and CV_TERMCRIT_ITER not work, so I still had to keep the include highgui.h and keep them with the CV in front, unless you know a way to properly do those too.
yea, it's a bit painful. some of those were entirely renamed, like:
my advice here: use the searchbar with current docs , try to find the function, that uses those flags, and dig your way in from there.
and again, those changes were made during the transition to 3.0, you're a couple of years late with your problem !
Okay, I see, put both of your comments on here as an answer, and I'll mark that as the answer as this solved the problem and I did get certain ones to work that weren't working since it turns out I was putting them in wrong in the first place, I'm having a separate problem with Json, but it's not related to OpenCV directly, so I won't post it here.