From e2df8c7e62ecd077cec1aca87b63d5dfa22d4df1 Mon Sep 17 00:00:00 2001 From: Siva Prasad Varma Date: Fri, 5 Apr 2013 19:09:09 +0530 Subject: [PATCH] Fix bug #2590 replaced wrong check to correct check --- samples/cpp/freak_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/freak_demo.cpp b/samples/cpp/freak_demo.cpp index 60778fd4e2..5112eae122 100644 --- a/samples/cpp/freak_demo.cpp +++ b/samples/cpp/freak_demo.cpp @@ -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; }