gaoxiang12 / slambook

MIT License
6.92k stars 3.27k forks source link

ch07 compiling error in file feature_extraction.cpp with "CV_LOAD_IMAGE_COLOR not declared in this scope" in line 17 #109

Open PretDB opened 6 years ago

PretDB commented 6 years ago

I'm compiling example in ch07, but had a problem as below:

ch7/feature_extraction.cpp:17:35: error: 'CV_LOAD_IMAGE_COLOR' was not declared in this scope Mat img_1 = imread ( argv[1], CV_LOAD_IMAGE_COLOR );

I'm using opencv 4.0.0-pre

PretDB commented 6 years ago

replace “IMREAD_COLOR” with “CV_LOAD_IMAGE_COLOR”.