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
5527f287
Commit
5527f287
authored
Mar 04, 2014
by
Roman Donchenko
Committed by
OpenCV Buildbot
Mar 04, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2409 from juanmanpr:master
parents
0692a674
7a68e3d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
contrast_preserve.cpp
modules/photo/src/contrast_preserve.cpp
+1
-11
seamless_cloning.cpp
modules/photo/src/seamless_cloning.cpp
+1
-6
No files found.
modules/photo/src/contrast_preserve.cpp
View file @
5527f287
...
...
@@ -45,7 +45,6 @@
#include "math.h"
#include <vector>
#include <limits>
#include <iostream>
#include "contrast_preserve.hpp"
using
namespace
std
;
...
...
@@ -60,16 +59,7 @@ void cv::decolor(InputArray _src, OutputArray _dst, OutputArray _color_boost)
_color_boost
.
create
(
I
.
size
(),
CV_8UC3
);
Mat
color_boost
=
_color_boost
.
getMat
();
if
(
!
I
.
data
)
{
cout
<<
"Could not open or find the image"
<<
endl
;
return
;
}
if
(
I
.
channels
()
!=
3
)
{
cout
<<
"Input Color Image"
<<
endl
;
return
;
}
CV_Assert
(
!
I
.
empty
()
&&
(
I
.
channels
()
==
3
));
// Parameter Setting
int
maxIter
=
15
;
...
...
modules/photo/src/seamless_cloning.cpp
View file @
5527f287
...
...
@@ -41,7 +41,6 @@
#include "precomp.hpp"
#include "opencv2/photo.hpp"
#include <iostream>
#include <stdlib.h>
#include "seamless_cloning.hpp"
...
...
@@ -93,11 +92,7 @@ void cv::seamlessClone(InputArray _src, InputArray _dst, InputArray _mask, Point
int
minyd
=
p
.
x
-
leny
/
2
;
int
maxyd
=
p
.
x
+
leny
/
2
;
if
(
minxd
<
0
||
minyd
<
0
||
maxxd
>
dest
.
size
().
height
||
maxyd
>
dest
.
size
().
width
)
{
cout
<<
"Index out of range"
<<
endl
;
exit
(
0
);
}
CV_Assert
(
minxd
>=
0
&&
minyd
>=
0
&&
maxxd
<=
dest
.
rows
&&
maxyd
<=
dest
.
cols
);
Rect
roi_d
(
minyd
,
minxd
,
leny
,
lenx
);
Rect
roi_s
(
miny
,
minx
,
leny
,
lenx
);
...
...
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