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
bd6ad797
Commit
bd6ad797
authored
Jan 15, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3595 from timsat:error_messages
parents
ce5e2697
4762728f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
calibration.cpp
modules/calib3d/src/calibration.cpp
+7
-3
contours.cpp
modules/imgproc/src/contours.cpp
+3
-1
No files found.
modules/calib3d/src/calibration.cpp
View file @
bd6ad797
...
...
@@ -2972,7 +2972,13 @@ static void collectCalibrationData( InputArrayOfArrays objectPoints,
for
(
i
=
0
;
i
<
nimages
;
i
++
)
{
ni
=
objectPoints
.
getMat
(
i
).
checkVector
(
3
,
CV_32F
);
CV_Assert
(
ni
>=
0
);
if
(
ni
<=
0
)
CV_Error
(
CV_StsUnsupportedFormat
,
"objectPoints should contain vector of vectors of points of type Point3f"
);
int
ni1
=
imagePoints1
.
getMat
(
i
).
checkVector
(
2
,
CV_32F
);
if
(
ni1
<=
0
)
CV_Error
(
CV_StsUnsupportedFormat
,
"imagePoints1 should contain vector of vectors of points of type Point2f"
);
CV_Assert
(
ni
==
ni1
);
total
+=
ni
;
}
...
...
@@ -2995,8 +3001,6 @@ static void collectCalibrationData( InputArrayOfArrays objectPoints,
Mat
objpt
=
objectPoints
.
getMat
(
i
);
Mat
imgpt1
=
imagePoints1
.
getMat
(
i
);
ni
=
objpt
.
checkVector
(
3
,
CV_32F
);
int
ni1
=
imgpt1
.
checkVector
(
2
,
CV_32F
);
CV_Assert
(
ni
>
0
&&
ni
==
ni1
);
npoints
.
at
<
int
>
(
i
)
=
ni
;
memcpy
(
objPtData
+
j
,
objpt
.
ptr
(),
ni
*
sizeof
(
objPtData
[
0
])
);
memcpy
(
imgPtData1
+
j
,
imgpt1
.
ptr
(),
ni
*
sizeof
(
imgPtData1
[
0
])
);
...
...
modules/imgproc/src/contours.cpp
View file @
bd6ad797
...
...
@@ -193,7 +193,9 @@ cvStartFindContours( void* _img, CvMemStorage* storage,
if
(
!
((
CV_IS_MASK_ARR
(
mat
)
&&
mode
<
CV_RETR_FLOODFILL
)
||
(
CV_MAT_TYPE
(
mat
->
type
)
==
CV_32SC1
&&
mode
==
CV_RETR_FLOODFILL
))
)
CV_Error
(
CV_StsUnsupportedFormat
,
"[Start]FindContours support only 8uC1 and 32sC1 images"
);
CV_Error
(
CV_StsUnsupportedFormat
,
"[Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL "
"otherwise supports CV_32SC1 images only"
);
CvSize
size
=
cvSize
(
mat
->
width
,
mat
->
height
);
int
step
=
mat
->
step
;
...
...
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