From: Gary Bradski Date: Sat, 4 Dec 2010 08:30:59 +0000 (+0000) Subject: revamped X-Git-Tag: accepted/2.0/20130307.220821~3899 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11f4e1028b1edb0b00f14df87262257fbbe5889c;p=profile%2Fivi%2Fopencv.git revamped --- diff --git a/samples/cpp/image.cpp b/samples/cpp/image.cpp index 0e97022..677e1bc 100644 --- a/samples/cpp/image.cpp +++ b/samples/cpp/image.cpp @@ -9,11 +9,22 @@ using namespace cv; // all the new API is put into "cv" namespace. Export its co using namespace std; using namespace cv::flann; +void help() +{ + cout << + "\nThis program shows how to use cv::Mat and IplImages converting back and forth.\n" + "It shows reading of images, converting to planes and merging back, color conversion\n" + "and also iterating through pixels.\n" + "Call:\n" + "./image [image-name Default: lena.jpg]\n" << endl; +} + // enable/disable use of mixed API in the code below. #define DEMO_MIXED_API_USE 1 int main( int argc, char** argv ) { + help(); const char* imagename = argc > 1 ? argv[1] : "lena.jpg"; #if DEMO_MIXED_API_USE Ptr iplimg = cvLoadImage(imagename); // Ptr is safe ref-conting pointer class