Skip to content

Commit 3f2164f

Browse files
committed
Update peilin.cpp
1 parent 233d80f commit 3f2164f

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

modules/ximgproc/samples/peilin.cpp

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
#include <iostream>
66

7-
static void help()
8-
{
9-
std::cout << "\nThis 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-
147
static inline cv::Mat operator& ( const cv::Mat& lhs, const cv::Matx23d& rhs )
158
{
169
cv::Mat ret;
@@ -27,12 +20,10 @@ static inline cv::Mat operator& ( const cv::Matx23d& lhs, const cv::Mat& rhs )
2720

2821
int main(int argc, char** argv)
2922
{
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("\nThis program demonstrates Pei&Lin Normalization\n");
25+
parser.printMessage();
26+
3627
std::string filename1 = parser.get<std::string>("@input1");
3728
std::string filename2 = parser.get<std::string>("@input2");
3829

0 commit comments

Comments
 (0)