Update peilin.cpp

pull/1811/head
Suleyman TURKMEN 7 years ago
parent 233d80f312
commit 3f2164ff49
  1. 17
      modules/ximgproc/samples/peilin.cpp

@ -4,13 +4,6 @@
#include <iostream> #include <iostream>
static void help()
{
std::cout << "\nThis program demonstrates Pei&Lin Normalization\n"
"Usage:\n"
"./peilin [image1_name -- default is ../data/peilin_plane.png] [image2_name -- default is ../data/peilin_shape.png]\n" << std::endl;
}
static inline cv::Mat operator& ( const cv::Mat& lhs, const cv::Matx23d& rhs ) static inline cv::Mat operator& ( const cv::Mat& lhs, const cv::Matx23d& rhs )
{ {
cv::Mat ret; cv::Mat ret;
@ -27,12 +20,10 @@ static inline cv::Mat operator& ( const cv::Matx23d& lhs, const cv::Mat& rhs )
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
cv::CommandLineParser parser(argc, argv, "{help h | | }{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_plane.png | }"); cv::CommandLineParser parser(argc, argv, "{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_shape.png | }");
if (parser.has("help")) parser.about("\nThis program demonstrates Pei&Lin Normalization\n");
{ parser.printMessage();
help();
return 0;
}
std::string filename1 = parser.get<std::string>("@input1"); std::string filename1 = parser.get<std::string>("@input1");
std::string filename2 = parser.get<std::string>("@input2"); std::string filename2 = parser.get<std::string>("@input2");

Loading…
Cancel
Save