diff --git a/mpicbg/src/main/java/mpicbg/models/AbstractModel.java b/mpicbg/src/main/java/mpicbg/models/AbstractModel.java index 8b0ba06..af90efc 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 ); }