From 139695213e9d8a5d918cadf7b823a01ca7f4a3db Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Fri, 3 Dec 2010 02:43:10 +0000 Subject: [PATCH] documenation and output added --- samples/c/pyramid_segmentation.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/samples/c/pyramid_segmentation.c b/samples/c/pyramid_segmentation.c index e71d223..f955fbf 100644 --- a/samples/c/pyramid_segmentation.c +++ b/samples/c/pyramid_segmentation.c @@ -1,5 +1,15 @@ #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" +#include + +void help() +{ + printf("\nThis program demonstrated color pyramid segmentation cvcvPyrSegmentation() which is controlled\n" + "by two trhesholds which can be manipulated by a trackbar. It can take an image file name or defaults to 'fruits.jpg'\n" + "Call:\n" + "./pyaramid_segmentation [image_path_filename -- Defaults to fruits.jpg]\n\n" + ); +} IplImage* image[2] = { 0, 0 }, *image0 = 0, *image1 = 0; CvSize size; @@ -44,6 +54,7 @@ void ON_SEGMENT(int a) cvShowImage("Segmentation", image1); } + int main( int argc, char** argv ) { char* filename = argc == 2 ? argv[1] : (char*)"fruits.jpg"; -- 2.7.4