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