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
f94610a0
Commit
f94610a0
authored
Nov 21, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1455 from alalek:ximgproc_fix_namespace
parents
a30fb44d
2700b7d4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
peilin.hpp
modules/ximgproc/include/opencv2/ximgproc/peilin.hpp
+4
-3
peilin.cpp
modules/ximgproc/samples/peilin.cpp
+2
-2
peilin.cpp
modules/ximgproc/src/peilin.cpp
+2
-3
No files found.
modules/ximgproc/include/opencv2/ximgproc/peilin.hpp
View file @
f94610a0
...
...
@@ -7,8 +7,8 @@
#include <opencv2/core.hpp>
namespace
cv
{
namespace
cv
{
namespace
ximgproc
{
//! @addtogroup ximgproc
//! @{
...
...
@@ -26,6 +26,7 @@ namespace cv
CV_EXPORTS
Matx23d
PeiLinNormalization
(
InputArray
I
);
/** @overload */
CV_EXPORTS_W
void
PeiLinNormalization
(
InputArray
I
,
OutputArray
T
);
}
}}
// namespace
#endif
modules/ximgproc/samples/peilin.cpp
View file @
f94610a0
...
...
@@ -48,8 +48,8 @@ int main(int argc, char** argv)
std
::
cout
<<
"Couldn't open image "
<<
filename2
<<
std
::
endl
;
return
0
;
}
cv
::
Mat
N
=
I
&
cv
::
PeiLinNormalization
(
I
);
cv
::
Mat
D
=
cv
::
PeiLinNormalization
(
J
)
&
I
;
cv
::
Mat
N
=
I
&
cv
::
ximgproc
::
PeiLinNormalization
(
I
);
cv
::
Mat
D
=
cv
::
ximgproc
::
PeiLinNormalization
(
J
)
&
I
;
cv
::
imshow
(
"I"
,
I
);
cv
::
imshow
(
"N"
,
N
);
cv
::
imshow
(
"J"
,
J
);
...
...
modules/ximgproc/src/peilin.cpp
View file @
f94610a0
...
...
@@ -4,8 +4,7 @@
#include "precomp.hpp"
namespace
cv
{
namespace
cv
{
namespace
ximgproc
{
static
inline
Moments
operator
&
(
const
Moments
&
lhs
,
const
Matx22d
&
rhs
)
{
...
...
@@ -54,4 +53,4 @@ namespace cv
T
.
assign
(
Mat
(
PeiLinNormalization
(
I
)
)
);
}
}
}
}
// namespace
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