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
51f2b27b
Commit
51f2b27b
authored
Oct 30, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7574 from Tytan:expcomp_before_seams
parents
7fe0fb6b
bbd4a0eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
stitcher.cpp
modules/stitching/src/stitcher.cpp
+8
-4
No files found.
modules/stitching/src/stitcher.cpp
View file @
51f2b27b
...
...
@@ -226,14 +226,18 @@ Stitcher::Status Stitcher::composePanorama(InputArrayOfArrays images, OutputArra
w
->
warp
(
masks
[
i
],
K
,
cameras_
[
i
].
R
,
INTER_NEAREST
,
BORDER_CONSTANT
,
masks_warped
[
i
]);
}
std
::
vector
<
UMat
>
images_warped_f
(
imgs_
.
size
());
for
(
size_t
i
=
0
;
i
<
imgs_
.
size
();
++
i
)
images_warped
[
i
].
convertTo
(
images_warped_f
[
i
],
CV_32F
);
LOGLN
(
"Warping images, time: "
<<
((
getTickCount
()
-
t
)
/
getTickFrequency
())
<<
" sec"
);
//
Find
seams
//
Compensate exposure before finding
seams
exposure_comp_
->
feed
(
corners
,
images_warped
,
masks_warped
);
for
(
size_t
i
=
0
;
i
<
imgs_
.
size
();
++
i
)
exposure_comp_
->
apply
(
int
(
i
),
corners
[
i
],
images_warped
[
i
],
masks_warped
[
i
]);
// Find seams
std
::
vector
<
UMat
>
images_warped_f
(
imgs_
.
size
());
for
(
size_t
i
=
0
;
i
<
imgs_
.
size
();
++
i
)
images_warped
[
i
].
convertTo
(
images_warped_f
[
i
],
CV_32F
);
seam_finder_
->
find
(
images_warped_f
,
corners
,
masks_warped
);
// Release unused memory
...
...
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