File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include < iostream>
6
6
7
- static void help ()
8
- {
9
- std::cout << " \n This program demonstrates Pei&Lin Normalization\n "
10
- " Usage:\n "
11
- " ./peilin [image1_name -- default is ../data/peilin_plane.png] [image2_name -- default is ../data/peilin_shape.png]\n " << std::endl;
12
- }
13
-
14
7
static inline cv::Mat operator & ( const cv::Mat& lhs, const cv::Matx23d& rhs )
15
8
{
16
9
cv::Mat ret;
@@ -27,12 +20,10 @@ static inline cv::Mat operator& ( const cv::Matx23d& lhs, const cv::Mat& rhs )
27
20
28
21
int main (int argc, char ** argv)
29
22
{
30
- cv::CommandLineParser parser (argc, argv, " {help h | | }{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_plane.png | }" );
31
- if (parser.has (" help" ))
32
- {
33
- help ();
34
- return 0 ;
35
- }
23
+ cv::CommandLineParser parser (argc, argv, " { @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_shape.png | }" );
24
+ parser.about (" \n This program demonstrates Pei&Lin Normalization\n " );
25
+ parser.printMessage ();
26
+
36
27
std::string filename1 = parser.get <std::string>(" @input1" );
37
28
std::string filename2 = parser.get <std::string>(" @input2" );
38
29
You can’t perform that action at this time.
0 commit comments