Commit e2df8c7e authored by Siva Prasad Varma's avatar Siva Prasad Varma

Fix bug #2590

replaced wrong check to correct check
parent 652606f7
......@@ -72,7 +72,7 @@ int main( int argc, char** argv ) {
}
Mat imgB = imread(argv[2], CV_LOAD_IMAGE_GRAYSCALE );
if( !imgA.data ) {
if( !imgB.data ) {
std::cout << " --(!) Error reading image " << argv[2] << std::endl;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment