我正试图使用cvGetMinMaxHistValues来查找所述值,使用Javacv时,它表示该函数未在我的类中声明。我已经导入:
import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_imgproc.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;
这个函数需要什么导入?
此外,是否有一个引用可以用来查找需要为每个opencv函数导入哪些库。在谷歌上搜索我想使用的每一个功能是非常烦人的。
提前感谢!
你指的是cvGetMinMaxHistValue
,而不是cvGetMinMaxHistValues
吗?
(实际上存在于imgproc中)
对于cvGetMinMaxHistValues
,它是:
import static com.googlecode.javacv.cpp.opencv_imgproc.cvGetMinMaxHistValue;
以下是对您有帮助的进口清单:
import static com.googlecode.javacv.cpp.opencv_core.cvCreateImage;
import static com.googlecode.javacv.cpp.opencv_highgui.cvLoadImage;
import static com.googlecode.javacv.cpp.opencv_imgproc.CV_BGR2GRAY;
import static com.googlecode.javacv.cpp.opencv_imgproc.cvCalcHist;
import static com.googlecode.javacv.cpp.opencv_imgproc.cvCvtColor;
import static com.googlecode.javacv.cpp.opencv_core.CV_RGB;
import com.googlecode.javacv.CanvasFrame;
import com.googlecode.javacv.cpp.opencv_core.*;
import com.googlecode.javacv.cpp.opencv_imgproc.CvHistogram;
import static com.googlecode.javacv.cpp.opencv_imgproc.CV_HIST_ARRAY;
import static com.googlecode.javacv.cpp.opencv_legacy.cvQueryHistValue_1D;
import static com.googlecode.javacv.cpp.opencv_core.CV_FILLED;
import static com.googlecode.javacv.cpp.opencv_core.cvPoint;
import static com.googlecode.javacv.cpp.opencv_core.cvRectangle;
import static com.googlecode.javacv.cpp.opencv_imgproc.cvCreateHist;
import com.googlecode.javacv.cpp.opencv_core.IplImageArray;