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
497ee7a5
Commit
497ee7a5
authored
May 26, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some comments into multi-band blending code
parent
e639daf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
blenders.cpp
modules/stitching/blenders.cpp
+5
-1
main.cpp
modules/stitching/main.cpp
+1
-1
No files found.
modules/stitching/blenders.cpp
View file @
497ee7a5
...
...
@@ -200,7 +200,11 @@ void MultiBandBlender::feed(const Mat &img, const Mat &mask, Point tl)
Point
br_new
(
min
(
dst_roi_
.
br
().
x
,
tl
.
x
+
img
.
cols
+
gap
),
min
(
dst_roi_
.
br
().
y
,
tl
.
y
+
img
.
rows
+
gap
));
// Ensure coordinates of top-left, bootom-right corners are divided by (1 << num_bands_)
// Ensure coordinates of top-left, bootom-right corners are divided by (1 << num_bands_).
// After that scale between layers is exactly 2.
//
// We do it to avoid interpolation problems when keeping sub-images only. There is no such problem when
// image is bordered to have size equal to the final image size, but this is too memory hungry approach.
tl_new
.
x
=
dst_roi_
.
x
+
(((
tl_new
.
x
-
dst_roi_
.
x
)
>>
num_bands_
)
<<
num_bands_
);
tl_new
.
y
=
dst_roi_
.
y
+
(((
tl_new
.
y
-
dst_roi_
.
y
)
>>
num_bands_
)
<<
num_bands_
);
int
width
=
br_new
.
x
-
tl_new
.
x
;
...
...
modules/stitching/main.cpp
View file @
497ee7a5
...
...
@@ -85,7 +85,7 @@ void printUsage()
// Default command line args
vector
<
string
>
img_names
;
bool
trygpu
=
false
;
double
work_megapix
=
0.
5
;
double
work_megapix
=
0.
6
;
double
seam_megapix
=
0.1
;
double
compose_megapix
=
1
;
int
ba_space
=
BundleAdjuster
::
FOCAL_RAY_SPACE
;
...
...
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