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
f1cb2431
Commit
f1cb2431
authored
Oct 25, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed small bugs in Stitcher class
parent
28e006ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
stitcher.hpp
modules/stitching/include/opencv2/stitching/stitcher.hpp
+1
-1
stitcher.cpp
modules/stitching/src/stitcher.cpp
+4
-5
No files found.
modules/stitching/include/opencv2/stitching/stitcher.hpp
View file @
f1cb2431
...
...
@@ -119,7 +119,7 @@ public:
Ptr
<
detail
::
ExposureCompensator
>
exposureCompensator
()
{
return
exposure_comp_
;
}
const
Ptr
<
detail
::
ExposureCompensator
>
exposureCompensator
()
const
{
return
exposure_comp_
;
}
void
setExposureCompenstor
(
Ptr
<
detail
::
ExposureCompensator
>
exposure_comp
)
void
setExposureCompens
a
tor
(
Ptr
<
detail
::
ExposureCompensator
>
exposure_comp
)
{
exposure_comp_
=
exposure_comp
;
}
Ptr
<
detail
::
SeamFinder
>
seamFinder
()
{
return
seam_finder_
;
}
...
...
modules/stitching/src/stitcher.cpp
View file @
f1cb2431
...
...
@@ -70,10 +70,10 @@ Stitcher Stitcher::createDefault(bool try_use_gpu)
{
stitcher
.
setFeaturesFinder
(
new
detail
::
SurfFeaturesFinder
());
stitcher
.
setWarper
(
new
SphericalWarper
());
stitcher
.
setSeamFinder
(
new
detail
::
GraphCutSeamFinder
());
stitcher
.
setSeamFinder
(
new
detail
::
GraphCutSeamFinder
(
detail
::
GraphCutSeamFinderBase
::
COST_COLOR
));
}
stitcher
.
setExposureCompenstor
(
new
detail
::
BlocksGainCompensator
());
stitcher
.
setExposureCompens
a
tor
(
new
detail
::
BlocksGainCompensator
());
stitcher
.
setBlender
(
new
detail
::
MultiBandBlender
(
try_use_gpu
));
return
stitcher
;
...
...
@@ -444,11 +444,10 @@ void Stitcher::estimateCameraParams()
}
sort
(
focals
.
begin
(),
focals
.
end
());
float
warped_image_scale
;
if
(
focals
.
size
()
%
2
==
1
)
warped_image_scale
=
static_cast
<
float
>
(
focals
[
focals
.
size
()
/
2
]);
warped_image_scale
_
=
static_cast
<
float
>
(
focals
[
focals
.
size
()
/
2
]);
else
warped_image_scale
=
static_cast
<
float
>
(
focals
[
focals
.
size
()
/
2
-
1
]
+
focals
[
focals
.
size
()
/
2
])
*
0.5
f
;
warped_image_scale
_
=
static_cast
<
float
>
(
focals
[
focals
.
size
()
/
2
-
1
]
+
focals
[
focals
.
size
()
/
2
])
*
0.5
f
;
if
(
do_wave_correct_
)
{
...
...
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