more warnings fixed. +some warnings in examples

This commit is contained in:
Anatoly Baksheev
2011-05-07 12:06:58 +00:00
parent 927dccb463
commit 8ebff41c29
12 changed files with 22 additions and 18 deletions

View File

@@ -1929,8 +1929,8 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize,
bool cv::findCirclesGrid( const InputArray& _image, Size patternSize,
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector )
{
bool isAsymmetricGrid = (bool)(flags & CALIB_CB_ASYMMETRIC_GRID);
bool isSymmetricGrid = (bool)(flags & CALIB_CB_SYMMETRIC_GRID);
bool isAsymmetricGrid = (flags & CALIB_CB_ASYMMETRIC_GRID) ? true : false;
bool isSymmetricGrid = (flags & CALIB_CB_SYMMETRIC_GRID ) ? true : false;
CV_Assert(isAsymmetricGrid ^ isSymmetricGrid);
Mat image = _image.getMat();