documenation and output added
This commit is contained in:
parent
72697de861
commit
139695213e
@ -1,5 +1,15 @@
|
|||||||
#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)
|
|||||||
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user