projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f3ae3a
)
put extra check to cv::findChessboardCorners (ticket #648)
author
Vadim Pisarevsky
<no@email>
Tue, 9 Nov 2010 15:45:56 +0000
(15:45 +0000)
committer
Vadim Pisarevsky
<no@email>
Tue, 9 Nov 2010 15:45:56 +0000
(15:45 +0000)
modules/calib3d/src/calibinit.cpp
patch
|
blob
|
history
diff --git
a/modules/calib3d/src/calibinit.cpp
b/modules/calib3d/src/calibinit.cpp
index
c5c62d7
..
b6083fa
100644
(file)
--- a/
modules/calib3d/src/calibinit.cpp
+++ b/
modules/calib3d/src/calibinit.cpp
@@
-1904,7
+1904,8
@@
bool findChessboardCorners( const Mat& image, Size patternSize,
CvMat _image = image;
bool ok = cvFindChessboardCorners(&_image, patternSize,
(CvPoint2D32f*)&corners[0], &count, flags ) > 0;
- corners.resize(count);
+ if(count >= 0)
+ corners.resize(count);
return ok;
}