I am a beginner in image processing with OpenCV and Visual Studio. I have a paragraph of code which I don't understand:
Mat image;
image = imread(filename, IMREAD_COLOR); // Read the file
if (! image.data ) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl ;
return -1;
}
In the third line, what do !
and .data
mean? How do they check for invalid input?
" at the end of every line. :) – jincong Jun 17 '13 at 14:41