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
55111329
Commit
55111329
authored
Sep 26, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored stitching module
parent
67a9b794
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
stitcher.hpp
modules/stitching/include/opencv2/stitching/stitcher.hpp
+23
-6
stitcher.cpp
modules/stitching/src/stitcher.cpp
+0
-0
No files found.
modules/stitching/include/opencv2/stitching/stitcher.hpp
View file @
55111329
...
...
@@ -51,6 +51,7 @@
#include "detail/exposure_compensate.hpp"
#include "detail/seam_finders.hpp"
#include "detail/blenders.hpp"
#include "detail/camera.hpp"
namespace
cv
{
...
...
@@ -78,8 +79,11 @@ public:
double
panoConfidenceThresh
()
const
{
return
conf_thresh_
;
}
void
setPanoConfidenceThresh
(
double
conf_thresh
)
{
conf_thresh_
=
conf_thresh
;
}
bool
horizontalStrightening
()
const
{
return
horiz_stright_
;
}
void
setHorizontalStrightening
(
bool
flag
)
{
horiz_stright_
=
flag
;
}
bool
waveCorrection
()
const
{
return
do_wave_correct_
;
}
void
setWaveCorrection
(
bool
flag
)
{
do_wave_correct_
=
flag
;
}
detail
::
WaveCorrectKind
waveCorrectKind
()
const
{
return
wave_correct_kind_
;
}
void
setWaveCorrectKind
(
detail
::
WaveCorrectKind
kind
)
{
wave_correct_kind_
=
kind
;
}
Ptr
<
detail
::
FeaturesFinder
>
featuresFinder
()
{
return
features_finder_
;
}
const
Ptr
<
detail
::
FeaturesFinder
>
featuresFinder
()
const
{
return
features_finder_
;
}
...
...
@@ -96,9 +100,6 @@ public:
void
setBundleAdjuster
(
Ptr
<
detail
::
BundleAdjusterBase
>
bundle_adjuster
)
{
bundle_adjuster_
=
bundle_adjuster
;
}
detail
::
WaveCorrectKind
waveCorrectKind
()
const
{
return
wave_correct_kind_
;
}
void
setWaveCorrectKind
(
detail
::
WaveCorrectKind
kind
)
{
wave_correct_kind_
=
kind
;
}
Ptr
<
WarperCreator
>
warper
()
{
return
warper_
;
}
const
Ptr
<
WarperCreator
>
warper
()
const
{
return
warper_
;
}
void
setWarper
(
Ptr
<
WarperCreator
>
warper
)
{
warper_
=
warper
;
}
...
...
@@ -119,19 +120,35 @@ public:
private
:
Stitcher
()
{}
Status
matchImages
();
void
estimateCameraParams
();
Status
composePanorama
(
cv
::
Mat
&
pano
);
double
registr_resol_
;
double
seam_est_resol_
;
double
compose_resol_
;
double
conf_thresh_
;
bool
horiz_stright_
;
Ptr
<
detail
::
FeaturesFinder
>
features_finder_
;
Ptr
<
detail
::
FeaturesMatcher
>
features_matcher_
;
Ptr
<
detail
::
BundleAdjusterBase
>
bundle_adjuster_
;
bool
do_wave_correct_
;
detail
::
WaveCorrectKind
wave_correct_kind_
;
Ptr
<
WarperCreator
>
warper_
;
Ptr
<
detail
::
ExposureCompensator
>
exposure_comp_
;
Ptr
<
detail
::
SeamFinder
>
seam_finder_
;
Ptr
<
detail
::
Blender
>
blender_
;
std
::
vector
<
cv
::
Mat
>
imgs_
;
std
::
vector
<
cv
::
Size
>
full_img_sizes_
;
std
::
vector
<
detail
::
ImageFeatures
>
features_
;
std
::
vector
<
detail
::
MatchesInfo
>
pairwise_matches_
;
std
::
vector
<
cv
::
Mat
>
seam_est_imgs_
;
std
::
vector
<
int
>
indices_
;
std
::
vector
<
detail
::
CameraParams
>
cameras_
;
double
work_scale_
;
double
seam_scale_
;
double
seam_work_aspect_
;
double
warped_image_scale_
;
};
}
// namespace cv
...
...
modules/stitching/src/stitcher.cpp
View file @
55111329
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