Skip to content

Commit

Permalink
Merge pull request #57 from StephanPreibisch/fixRANSAC
Browse files Browse the repository at this point in the history
the current version sometimes ends up with pointmatches having a high…
  • Loading branch information
axtimwalde authored Nov 1, 2024
2 parents 888dbdb + 5da6a31 commit 613058d
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 613058d

Please sign in to comment.