Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
99720594
Commit
99720594
authored
Oct 14, 2014
by
Adrien BAK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppress warnings
parent
53d11f49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
photo.hpp
modules/photo/include/opencv2/photo.hpp
+1
-1
seamless_cloning.cpp
modules/photo/src/seamless_cloning.cpp
+1
-1
seamless_cloning_impl.cpp
modules/photo/src/seamless_cloning_impl.cpp
+2
-2
test_npr.cpp
modules/photo/test/test_npr.cpp
+1
-1
No files found.
modules/photo/include/opencv2/photo.hpp
View file @
99720594
...
...
@@ -315,7 +315,7 @@ CV_EXPORTS_W void illuminationChange(InputArray src, InputArray mask, OutputArra
float
alpha
=
0.2
f
,
float
beta
=
0.4
f
);
CV_EXPORTS_W
void
textureFlattening
(
InputArray
src
,
InputArray
mask
,
OutputArray
dst
,
double
low_threshold
=
30
,
double
high_threshold
=
45
,
float
low_threshold
=
30
,
float
high_threshold
=
45
,
int
kernel_size
=
3
);
CV_EXPORTS_W
void
edgePreservingFilter
(
InputArray
src
,
OutputArray
dst
,
int
flags
=
1
,
...
...
modules/photo/src/seamless_cloning.cpp
View file @
99720594
...
...
@@ -167,7 +167,7 @@ void cv::illuminationChange(InputArray _src, InputArray _mask, OutputArray _dst,
}
void
cv
::
textureFlattening
(
InputArray
_src
,
InputArray
_mask
,
OutputArray
_dst
,
double
low_threshold
,
double
high_threshold
,
int
kernel_size
)
float
low_threshold
,
float
high_threshold
,
int
kernel_size
)
{
Mat
src
=
_src
.
getMat
();
...
...
modules/photo/src/seamless_cloning_impl.cpp
View file @
99720594
...
...
@@ -252,12 +252,12 @@ void Cloning::initVariables(const Mat &destination, const Mat &binaryMask)
const
int
w
=
destination
.
cols
;
filter_X
.
resize
(
w
-
2
);
for
(
int
i
=
0
;
i
<
w
-
2
;
++
i
)
filter_X
[
i
]
=
2.0
f
*
std
::
cos
(
CV_PI
*
(
i
+
1
)
/
(
w
-
1
));
filter_X
[
i
]
=
2.0
f
*
std
::
cos
(
static_cast
<
float
>
(
CV_PI
)
*
(
i
+
1
)
/
(
w
-
1
));
const
int
h
=
destination
.
rows
;
filter_Y
.
resize
(
h
-
2
);
for
(
int
j
=
0
;
j
<
h
-
2
;
++
j
)
filter_Y
[
j
]
=
2.0
f
*
std
::
cos
(
CV_PI
*
(
j
+
1
)
/
(
h
-
1
));
filter_Y
[
j
]
=
2.0
f
*
std
::
cos
(
static_cast
<
float
>
(
CV_PI
)
*
(
j
+
1
)
/
(
h
-
1
));
}
void
Cloning
::
computeDerivatives
(
const
Mat
&
destination
,
const
Mat
&
patch
,
const
Mat
&
binaryMask
)
...
...
modules/photo/test/test_npr.cpp
View file @
99720594
...
...
@@ -47,7 +47,7 @@
using
namespace
cv
;
using
namespace
std
;
static
const
double
numerical_precision
=
1.
;
static
const
double
numerical_precision
=
1
00
.
;
TEST
(
Photo_NPR_EdgePreserveSmoothing_RecursiveFilter
,
regression
)
{
...
...
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