Commit c0cd3172 authored by Andrey Morozov's avatar Andrey Morozov

fixed compile errors in samples

parent bc64567d
......@@ -56,9 +56,8 @@ void updateBrightnessContrast( int /*arg*/, void* )
}
void help()
{
printf("\nThis program demonstrates the use of calcHist() -- histogram creation.\n"
"Usage: \n"
"demhist [image_name -- Defaults to baboon.jpg]\n");
std::cout << "\nThis program demonstrates the use of calcHist() -- histogram creation.\n"
<< "Usage: \n" << "demhist [image_name -- Defaults to baboon.jpg]" << std::endl;
}
const char* keys =
......@@ -77,7 +76,7 @@ int main( int argc, const char** argv )
image = imread( inputImage, 0 );
if(image.empty())
{
printf("Cannot read image file: %s\n", inputImage.c_str());
std::cerr << "Cannot read image file: " << inputImage << 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