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
8e377767
Commit
8e377767
authored
May 27, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes in opencv_stitching
parent
bfbc7043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
blenders.cpp
modules/stitching/blenders.cpp
+1
-4
No files found.
modules/stitching/blenders.cpp
View file @
8e377767
...
...
@@ -80,7 +80,6 @@ void Blender::feed(const Mat &img, const Mat &mask, Point tl)
{
CV_Assert
(
img
.
type
()
==
CV_16SC3
);
CV_Assert
(
mask
.
type
()
==
CV_8U
);
int
dx
=
tl
.
x
-
dst_roi_
.
x
;
int
dy
=
tl
.
y
-
dst_roi_
.
y
;
...
...
@@ -88,7 +87,6 @@ void Blender::feed(const Mat &img, const Mat &mask, Point tl)
{
const
Point3_
<
short
>
*
src_row
=
img
.
ptr
<
Point3_
<
short
>
>
(
y
);
Point3_
<
short
>
*
dst_row
=
dst_
.
ptr
<
Point3_
<
short
>
>
(
dy
+
y
);
const
uchar
*
mask_row
=
mask
.
ptr
<
uchar
>
(
y
);
uchar
*
dst_mask_row
=
dst_mask_
.
ptr
<
uchar
>
(
dy
+
y
);
...
...
@@ -200,7 +198,7 @@ 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, bo
o
tom-right corners are divided by (1 << num_bands_).
// Ensure coordinates of top-left, bo
t
tom-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
...
...
@@ -225,7 +223,6 @@ void MultiBandBlender::feed(const Mat &img, const Mat &mask, Point tl)
// Create the source image Laplacian pyramid
vector
<
Mat
>
src_pyr_gauss
(
num_bands_
+
1
);
src_pyr_gauss
[
0
]
=
img
;
copyMakeBorder
(
img
,
src_pyr_gauss
[
0
],
top
,
bottom
,
left
,
right
,
BORDER_REFLECT
);
for
(
int
i
=
0
;
i
<
num_bands_
;
++
i
)
...
...
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