updated docs
This commit is contained in:
parent
83596f7288
commit
9ebaaecc85
@ -7,6 +7,20 @@
|
|||||||
|
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
|
|
||||||
|
void help()
|
||||||
|
{
|
||||||
|
|
||||||
|
printf("Show off image morphology: erosion, dialation, open and close\n"
|
||||||
|
"Call:\n morphology2 [image]\n"
|
||||||
|
"This program also shows use of rect, elipse and cross kernels\n\n");
|
||||||
|
printf( "Hot keys: \n"
|
||||||
|
"\tESC - quit the program\n"
|
||||||
|
"\tr - use rectangle structuring element\n"
|
||||||
|
"\te - use elliptic structuring element\n"
|
||||||
|
"\tc - use cross-shaped structuring element\n"
|
||||||
|
"\tSPACE - loop through all the options\n" );
|
||||||
|
}
|
||||||
|
|
||||||
Mat src, dst;
|
Mat src, dst;
|
||||||
|
|
||||||
int element_shape = MORPH_RECT;
|
int element_shape = MORPH_RECT;
|
||||||
@ -49,12 +63,7 @@ int main( int argc, char** argv )
|
|||||||
if( (src = imread(filename,1)).data == 0 )
|
if( (src = imread(filename,1)).data == 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
printf( "Hot keys: \n"
|
help();
|
||||||
"\tESC - quit the program\n"
|
|
||||||
"\tr - use rectangle structuring element\n"
|
|
||||||
"\te - use elliptic structuring element\n"
|
|
||||||
"\tc - use cross-shaped structuring element\n"
|
|
||||||
"\tSPACE - loop through all the options\n" );
|
|
||||||
|
|
||||||
//create windows for output images
|
//create windows for output images
|
||||||
namedWindow("Open/Close",1);
|
namedWindow("Open/Close",1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user