Ask Your Question
0

Load and Display an Image - IMREAD_COLOR

asked 2013-08-16 15:30:51 -0500

gamiz gravatar image

updated 2013-08-16 16:36:10 -0500

Hey everybody,

I'm having trouble with the very first tutorial section "Load and Display an Image". I downloaded the source code and tried to compile it but I get the following error:

display_image.cpp:17:29: error: ‘IMREAD_COLOR’ was not declared in this scope

What am I doing wrong? I don't get it... Thanks for your help!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2013-08-16 16:34:44 -0500

Probably you are using an old tutorials page. Looking at the latest release 2.4.6 and the accompanied documentaion, the load and display image example states that you should use CV_LOAD_IMAGE_COLOR in stead of INREAD_COLOR.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-08-16 15:30:51 -0500

Seen: 2,385 times

Last updated: Aug 16 '13