Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'CV_LOAD_IMAGE_UNCHANGED' : undeclared identifier

Tags:

opencv

I am new to to OpenCV and C++ programming. I recently installed and configure OpenCV 3.0 with Visual Studio 2013 through this link: http://opencv-srf.blogspot.com/2013/05/installing-configuring-opencv-with-vs.html

i am getting an error : 'CV_LOAD_IMAGE_UNCHANGED' : undeclared identifier i have included all d headerfiles as prescribed in the link. how can i debug this error

like image 897
Swaroop Gupta Avatar asked Feb 16 '15 03:02

Swaroop Gupta


2 Answers

In OpenCV 3.0+ the flag names changed: http://docs.opencv.org/3.0.0/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56

(check cv::ImreadModes)

The flag CV_LOAD_IMAGE_UNCHANGED is replaced by IMREAD_UNCHANGED

like image 69
coffee Avatar answered Nov 08 '22 07:11

coffee


From version 4.0.0, CV_LOAD_IMAGE_UNCHANGED has been changed to:

    IMREAD_UNCHANGED

https://docs.opencv.org/4.0.0/d4/da8/group__imgcodecs.html

like image 24
crimsonBlazee Avatar answered Nov 08 '22 07:11

crimsonBlazee