Skip to content

Commit

Permalink
the current version sometimes ends up with pointmatches having a high…
Browse files Browse the repository at this point in the history
…er error than epsilon if one re-fits the model using the inliers. It has to iterate until the number of inliers didn't change once
  • Loading branch information
StephanPreibisch committed Jun 14, 2021
1 parent 8a62a3b commit 5da6a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpicbg/src/main/java/mpicbg/models/AbstractModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 ); }
Expand Down

0 comments on commit 5da6a31

Please sign in to comment.