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
15b1b4e2
Commit
15b1b4e2
authored
Aug 31, 2011
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to gpu::pyrDown and gpu::pyrDown in opencv_stitching
parent
ea2f5b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
blenders.cpp
modules/stitching/blenders.cpp
+4
-3
blenders.hpp
modules/stitching/blenders.hpp
+0
-3
No files found.
modules/stitching/blenders.cpp
View file @
15b1b4e2
...
...
@@ -233,7 +233,10 @@ void MultiBandBlender::feed(const Mat &img, const Mat &mask, Point tl)
copyMakeBorder
(
img
,
img_with_border
,
top
,
bottom
,
left
,
right
,
BORDER_REFLECT
);
vector
<
Mat
>
src_pyr_laplace
;
createLaplacePyr
(
img_with_border
,
num_bands_
,
src_pyr_laplace
);
if
(
can_use_gpu_
)
createLaplacePyrGpu
(
img_with_border
,
num_bands_
,
src_pyr_laplace
);
else
createLaplacePyr
(
img_with_border
,
num_bands_
,
src_pyr_laplace
);
// Create the weight map Gaussian pyramid
Mat
weight_map
;
...
...
@@ -338,7 +341,6 @@ void createLaplacePyr(const Mat &img, int num_levels, vector<Mat> &pyr)
}
#if 0
void
createLaplacePyrGpu
(
const
Mat
&
img
,
int
num_levels
,
vector
<
Mat
>
&
pyr
)
{
pyr
.
resize
(
num_levels
+
1
);
...
...
@@ -358,7 +360,6 @@ void createLaplacePyrGpu(const Mat &img, int num_levels, vector<Mat> &pyr)
pyr
[
num_levels
]
=
gpu_pyr
[
num_levels
];
}
#endif
void
restoreImageFromLaplacePyr
(
vector
<
Mat
>
&
pyr
)
...
...
modules/stitching/blenders.hpp
View file @
15b1b4e2
...
...
@@ -109,10 +109,7 @@ void createWeightMap(const cv::Mat& mask, float sharpness, cv::Mat& weight);
void
createLaplacePyr
(
const
cv
::
Mat
&
img
,
int
num_levels
,
std
::
vector
<
cv
::
Mat
>&
pyr
);
// TODO Use it after gpu::pyrDown and gpu::pyrUp are updated
#if 0
void
createLaplacePyrGpu
(
const
cv
::
Mat
&
img
,
int
num_levels
,
std
::
vector
<
cv
::
Mat
>&
pyr
);
#endif
// Restores source image
void
restoreImageFromLaplacePyr
(
std
::
vector
<
cv
::
Mat
>&
pyr
);
...
...
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