Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no, you're trying with outdated 2.4 code, a lot of constants were renamed, e.g it is:

CV_WINDOW_NORMAL -> cv::WINDOW_NORMAL

CV_LOAD_IMAGE_COLOR -> cv::IMREAD_COLOR

CV_BGR2GRAY -> cv::COLOR_BGR2GRAY

please try to use current docs in the future.

is there some other lib that I need to include?

no, you're trying with outdated 2.4 code, a lot of constants were renamed, e.g it is:

CV_WINDOW_NORMAL -> cv::WINDOW_NORMAL

CV_LOAD_IMAGE_COLOR -> cv::IMREAD_COLOR

CV_BGR2GRAY -> cv::COLOR_BGR2GRAY

please try to use current docs in the future.