Restored findCirclesGridDefault() for backward compatibility
authorIlya Lysenkov <no@email>
Tue, 13 Mar 2012 09:38:00 +0000 (09:38 +0000)
committerIlya Lysenkov <no@email>
Tue, 13 Mar 2012 09:38:00 +0000 (09:38 +0000)
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
modules/calib3d/src/circlesgrid.cpp

index e344035..21c84a4 100644 (file)
@@ -548,6 +548,9 @@ CV_EXPORTS_W bool findCirclesGrid( InputArray image, Size patternSize,
                                  OutputArray centers, int flags=CALIB_CB_SYMMETRIC_GRID,
                                  const Ptr<FeatureDetector> &blobDetector = new SimpleBlobDetector());
 
+//! the deprecated function. Use findCirclesGrid() instead of it.
+CV_EXPORTS_W bool findCirclesGridDefault( InputArray image, Size patternSize,
+                                          OutputArray centers, int flags=CALIB_CB_SYMMETRIC_GRID );
 enum
 {
     CALIB_USE_INTRINSIC_GUESS = CV_CALIB_USE_INTRINSIC_GUESS,
index bb2dae6..3fc1190 100644 (file)
@@ -1589,3 +1589,8 @@ size_t CirclesGridFinder::getFirstCorner(vector<Point> &largeCornerIndices, vect
   return cornerIdx;
 }
 
+bool cv::findCirclesGridDefault( InputArray image, Size patternSize,
+                                 OutputArray centers, int flags )
+{
+  return findCirclesGrid(image, patternSize, centers, flags);
+}