From 9ce2197e9d294492fd55100a592ae1f7202872d6 Mon Sep 17 00:00:00 2001 From: Ilya Lysenkov Date: Wed, 30 Jan 2013 13:03:03 +0400 Subject: [PATCH] Added processing of trivial subsets --- modules/calib3d/src/modelest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/calib3d/src/modelest.cpp b/modules/calib3d/src/modelest.cpp index b6441e22cb..48d95c1aca 100644 --- a/modules/calib3d/src/modelest.cpp +++ b/modules/calib3d/src/modelest.cpp @@ -319,6 +319,9 @@ bool CvModelEstimator2::getSubset( const CvMat* m1, const CvMat* m2, bool CvModelEstimator2::checkSubset( const CvMat* m, int count ) { + if( count <= 2 ) + return true; + int j, k, i, i0, i1; CvPoint2D64f* ptr = (CvPoint2D64f*)m->data.ptr;