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
8fcd0d92
Commit
8fcd0d92
authored
Mar 28, 2012
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the error message in cvCorrectMatches (fixes #1155)
parent
2a68228b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
triangulate.cpp
modules/calib3d/src/triangulate.cpp
+3
-3
No files found.
modules/calib3d/src/triangulate.cpp
View file @
8fcd0d92
...
...
@@ -191,8 +191,8 @@ cvTriangulatePoints(CvMat* projMatr1, CvMat* projMatr2, CvMat* projPoints1, CvMa
* new_points2' * F * new_points1 = 0.
*
* F_ : 3x3 fundamental matrix
* points1_ :
2
xN matrix containing the first set of points
* points2_ :
2
xN matrix containing the second set of points
* points1_ :
1
xN matrix containing the first set of points
* points2_ :
1
xN matrix containing the second set of points
* new_points1 : the optimized points1_. if this is NULL, the corrected points are placed back in points1_
* new_points2 : the optimized points2_. if this is NULL, the corrected points are placed back in points2_
*/
...
...
@@ -218,7 +218,7 @@ cvCorrectMatches(CvMat *F_, CvMat *points1_, CvMat *points2_, CvMat *new_points1
if
(
!
(((
F_
->
type
&
CV_MAT_TYPE_MASK
)
>>
3
)
==
0
))
CV_Error
(
CV_StsUnsupportedFormat
,
"The fundamental matrix must be a single-channel matrix"
);
if
(
!
(
points1_
->
rows
==
1
&&
points2_
->
rows
==
1
&&
points1_
->
cols
==
points2_
->
cols
))
CV_Error
(
CV_StsUnmatchedSizes
,
"The point-matrices must have
two rows
, and an equal number of columns"
);
CV_Error
(
CV_StsUnmatchedSizes
,
"The point-matrices must have
one row
, and an equal number of columns"
);
if
(((
points1_
->
type
&
CV_MAT_TYPE_MASK
)
>>
3
)
!=
1
)
CV_Error
(
CV_StsUnmatchedSizes
,
"The first set of points must contain two channels; one for x and one for y"
);
if
(((
points2_
->
type
&
CV_MAT_TYPE_MASK
)
>>
3
)
!=
1
)
...
...
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