Building my code (below) returns error 'imread' is not a member of 'cv'.
I am using:
main.cpp:
#include <opencv/cv.h>
int main(int argc, char **argv) {
cv::Mat src = cv::imread("frame_original.png", 0);
return 0;
}`
What do I need to include to get cv::imread to work?
imread is part of OpenCV 2.1: http://opencv.willowgarage.com/documentation/cpp/highgui_reading_and_writing_images_and_video.html?highlight=imread#imread But where is it on my system? What do I need to include? Where can I find the documentation that tells me which header file I need from OpenCV to use a specific function?
You should include opencv/highgui.h.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With