Expose CirclesGridFinderParameters in findCirclesGrid.
This commit is contained in:
@@ -2093,7 +2093,8 @@ void cv::drawChessboardCorners( InputOutputArray _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,
|
||||
CirclesGridFinderParameters parameters)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
@@ -2120,13 +2121,6 @@ bool cv::findCirclesGrid( InputArray _image, Size patternSize,
|
||||
return !centers.empty();
|
||||
}
|
||||
|
||||
CirclesGridFinderParameters parameters;
|
||||
parameters.vertexPenalty = -0.6f;
|
||||
parameters.vertexGain = 1;
|
||||
parameters.existingVertexGain = 10000;
|
||||
parameters.edgeGain = 1;
|
||||
parameters.edgePenalty = -0.6f;
|
||||
|
||||
if(flags & CALIB_CB_ASYMMETRIC_GRID)
|
||||
parameters.gridType = CirclesGridFinderParameters::ASYMMETRIC_GRID;
|
||||
if(flags & CALIB_CB_SYMMETRIC_GRID)
|
||||
@@ -2192,4 +2186,10 @@ bool cv::findCirclesGrid( InputArray _image, Size patternSize,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool cv::findCirclesGrid( InputArray _image, Size patternSize,
|
||||
OutputArray _centers, int flags, const Ptr<FeatureDetector> &blobDetector)
|
||||
{
|
||||
return cv::findCirclesGrid(_image, patternSize, _centers, flags, blobDetector, CirclesGridFinderParameters());
|
||||
}
|
||||
|
||||
/* End of file. */
|
||||
|
||||
Reference in New Issue
Block a user