diff --git a/mpicbg/src/main/java/mpicbg/models/AbstractModel.java b/mpicbg/src/main/java/mpicbg/models/AbstractModel.java index 8b0ba066..af90efc2 100644 --- a/mpicbg/src/main/java/mpicbg/models/AbstractModel.java +++ b/mpicbg/src/main/java/mpicbg/models/AbstractModel.java @@ -323,7 +323,7 @@ final public < P extends PointMatch >boolean ransac( int numInliers = 0; boolean isGood = m.test( candidates, tempInliers, epsilon, minInlierRatio ); - while ( isGood && numInliers < tempInliers.size() ) + while ( isGood && numInliers != tempInliers.size() ) { numInliers = tempInliers.size(); try { m.fit( tempInliers ); }