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
ab9bbf64
Commit
ab9bbf64
authored
Apr 12, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8559 from liquidmetal:feature/utsinh_allocate_ecc
parents
3cee54cd
0330934c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
tracking.hpp
modules/video/include/opencv2/video/tracking.hpp
+1
-1
ecc.cpp
modules/video/src/ecc.cpp
+10
-0
No files found.
modules/video/include/opencv2/video/tracking.hpp
View file @
ab9bbf64
...
...
@@ -297,7 +297,7 @@ row is ignored.
Unlike findHomography and estimateRigidTransform, the function findTransformECC implements an
area-based alignment that builds on intensity similarities. In essence, the function updates the
initial transformation that roughly aligns the images. If this information is missing, the identity
warp (unity matrix)
should be given as input
. Note that if images undergo strong
warp (unity matrix)
is used as an initialization
. Note that if images undergo strong
displacements/rotations, an initial transformation that roughly aligns the images is necessary
(e.g., a simple euclidean/similarity transform that allows for the images showing the same image
content approximately). Use inverse warping in the second image to take an image close to the first
...
...
modules/video/src/ecc.cpp
View file @
ab9bbf64
...
...
@@ -325,6 +325,16 @@ double cv::findTransformECC(InputArray templateImage,
CV_Assert
(
!
src
.
empty
());
CV_Assert
(
!
dst
.
empty
());
// If the user passed an un-initialized warpMatrix, initialize to identity
if
(
map
.
empty
())
{
int
rowCount
=
2
;
if
(
motionType
==
MOTION_HOMOGRAPHY
)
rowCount
=
3
;
warpMatrix
.
create
(
rowCount
,
3
,
CV_32FC1
);
map
=
warpMatrix
.
getMat
();
map
=
Mat
::
eye
(
rowCount
,
3
,
CV_32F
);
}
if
(
!
(
src
.
type
()
==
dst
.
type
()))
CV_Error
(
Error
::
StsUnmatchedFormats
,
"Both input images must have the same data type"
);
...
...
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