Commit 13969521 authored by Gary Bradski's avatar Gary Bradski

documenation and output added

parent 72697de8
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp" #include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
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; IplImage* image[2] = { 0, 0 }, *image0 = 0, *image1 = 0;
CvSize size; CvSize size;
...@@ -44,6 +54,7 @@ void ON_SEGMENT(int a) ...@@ -44,6 +54,7 @@ void ON_SEGMENT(int a)
cvShowImage("Segmentation", image1); cvShowImage("Segmentation", image1);
} }
int main( int argc, char** argv ) int main( int argc, char** argv )
{ {
char* filename = argc == 2 ? argv[1] : (char*)"fruits.jpg"; char* filename = argc == 2 ? argv[1] : (char*)"fruits.jpg";
......
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