|
|
@ -2094,22 +2094,14 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize, |
|
|
|
nelems, patternWasFound ); |
|
|
|
nelems, patternWasFound ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool cv::findCirclesGrid( InputArray image, Size patternSize, |
|
|
|
bool cv::findCirclesGrid( InputArray _image, Size patternSize, |
|
|
|
OutputArray centers, int flags, |
|
|
|
|
|
|
|
const Ptr<FeatureDetector> &blobDetector, |
|
|
|
|
|
|
|
CirclesGridFinderParameters parameters) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
CirclesGridFinderParameters2 parameters2; |
|
|
|
|
|
|
|
*((CirclesGridFinderParameters*)¶meters2) = parameters; |
|
|
|
|
|
|
|
return cv::findCirclesGrid2(image, patternSize, centers, flags, blobDetector, parameters2); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool cv::findCirclesGrid2( InputArray _image, Size patternSize, |
|
|
|
|
|
|
|
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector, |
|
|
|
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector, |
|
|
|
CirclesGridFinderParameters2 parameters) |
|
|
|
const CirclesGridFinderParameters& parameters_) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CV_INSTRUMENT_REGION() |
|
|
|
CV_INSTRUMENT_REGION() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CirclesGridFinderParameters parameters = parameters_; // parameters.gridType is amended below
|
|
|
|
|
|
|
|
|
|
|
|
bool isAsymmetricGrid = (flags & CALIB_CB_ASYMMETRIC_GRID) ? true : false; |
|
|
|
bool isAsymmetricGrid = (flags & CALIB_CB_ASYMMETRIC_GRID) ? true : false; |
|
|
|
bool isSymmetricGrid = (flags & CALIB_CB_SYMMETRIC_GRID ) ? true : false; |
|
|
|
bool isSymmetricGrid = (flags & CALIB_CB_SYMMETRIC_GRID ) ? true : false; |
|
|
|
CV_Assert(isAsymmetricGrid ^ isSymmetricGrid); |
|
|
|
CV_Assert(isAsymmetricGrid ^ isSymmetricGrid); |
|
|
@ -2201,7 +2193,7 @@ bool cv::findCirclesGrid2( InputArray _image, Size patternSize, |
|
|
|
bool cv::findCirclesGrid( InputArray _image, Size patternSize, |
|
|
|
bool cv::findCirclesGrid( InputArray _image, Size patternSize, |
|
|
|
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector) |
|
|
|
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return cv::findCirclesGrid2(_image, patternSize, _centers, flags, blobDetector, CirclesGridFinderParameters2()); |
|
|
|
return cv::findCirclesGrid(_image, patternSize, _centers, flags, blobDetector, CirclesGridFinderParameters()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* End of file. */ |
|
|
|
/* End of file. */ |
|
|
|