Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
c6f783ca
Unverified
Commit
c6f783ca
authored
Oct 11, 2018
by
Alexander Alekhin
Committed by
GitHub
Oct 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1811 from sturkmen72:patch-1
Update peilin.cpp
parents
40cba0a2
3f2164ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
peilin.cpp
modules/ximgproc/samples/peilin.cpp
+4
-13
No files found.
modules/ximgproc/samples/peilin.cpp
View file @
c6f783ca
...
...
@@ -4,13 +4,6 @@
#include <iostream>
static
void
help
()
{
std
::
cout
<<
"
\n
This 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
)
{
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
)
{
cv
::
CommandLineParser
parser
(
argc
,
argv
,
"{help h | | }{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_plane.png | }"
);
if
(
parser
.
has
(
"help"
))
{
help
();
return
0
;
}
cv
::
CommandLineParser
parser
(
argc
,
argv
,
"{ @input1 | ../data/peilin_plane.png | }{ @input2 | ../data/peilin_shape.png | }"
);
parser
.
about
(
"
\n
This program demonstrates Pei&Lin Normalization
\n
"
);
parser
.
printMessage
();
std
::
string
filename1
=
parser
.
get
<
std
::
string
>
(
"@input1"
);
std
::
string
filename2
=
parser
.
get
<
std
::
string
>
(
"@input2"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment