added description output
This commit is contained in:
parent
f960d61faf
commit
0343513ded
@ -9,6 +9,15 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
|
|
||||||
|
void help()
|
||||||
|
{
|
||||||
|
cout << "This program shows the use of the Calonder point descriptor classifier"
|
||||||
|
"SURF is used to detect interest points, Calonder is used to describe/match these points\n"
|
||||||
|
"Format:" << endl <<
|
||||||
|
" classifier_file(to write) test_image file_with_train_images_filenames(txt)" <<
|
||||||
|
" or" << endl <<
|
||||||
|
" classifier_file(to read) test_image" << endl;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Generates random perspective transform of image
|
* Generates random perspective transform of image
|
||||||
*/
|
*/
|
||||||
@ -133,15 +142,11 @@ void testCalonderClassifier( const string& classifierFilename, const string& img
|
|||||||
waitKey();
|
waitKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main( int argc, char **argv )
|
int main( int argc, char **argv )
|
||||||
{
|
{
|
||||||
if( argc != 4 && argc != 3 )
|
if( argc != 4 && argc != 3 )
|
||||||
{
|
{
|
||||||
cout << "Format:" << endl <<
|
help();
|
||||||
" classifier_file(to write) test_image file_with_train_images_filenames(txt)" <<
|
|
||||||
" or" << endl <<
|
|
||||||
" classifier_file(to read) test_image" << endl;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user