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
f4daf14b
Commit
f4daf14b
authored
5 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16199 from sajarindider:computeGradientX
parents
abe2ca88
4b938208
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
seamless_cloning_impl.cpp
modules/photo/src/seamless_cloning_impl.cpp
+4
-12
No files found.
modules/photo/src/seamless_cloning_impl.cpp
View file @
f4daf14b
...
...
@@ -57,12 +57,8 @@ void Cloning::computeGradientX( const Mat &img, Mat &gx)
}
else
if
(
img
.
channels
()
==
1
)
{
Mat
tmp
[
3
];
for
(
int
chan
=
0
;
chan
<
3
;
++
chan
)
{
filter2D
(
img
,
tmp
[
chan
],
CV_32F
,
kernel
);
}
merge
(
tmp
,
3
,
gx
);
filter2D
(
img
,
gx
,
CV_32F
,
kernel
);
cvtColor
(
gx
,
gx
,
COLOR_GRAY2BGR
);
}
}
...
...
@@ -78,12 +74,8 @@ void Cloning::computeGradientY( const Mat &img, Mat &gy)
}
else
if
(
img
.
channels
()
==
1
)
{
Mat
tmp
[
3
];
for
(
int
chan
=
0
;
chan
<
3
;
++
chan
)
{
filter2D
(
img
,
tmp
[
chan
],
CV_32F
,
kernel
);
}
merge
(
tmp
,
3
,
gy
);
filter2D
(
img
,
gy
,
CV_32F
,
kernel
);
cvtColor
(
gy
,
gy
,
COLOR_GRAY2BGR
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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