protected static void setPointRois( final ImagePlus imp1, final ImagePlus imp2, final ArrayList<PointMatch> inliers ) { final ArrayList<Point> list1 = new ArrayList<Point>(); final ArrayList<Point> list2 = new ArrayList<Point>(); PointMatch.sourcePoints( inliers, list1 ); PointMatch.targetPoints( inliers, list2 ); PointRoi sourcePoints = mpicbg.ij.util.Util.pointsToPointRoi(list1); PointRoi targetPoints = mpicbg.ij.util.Util.pointsToPointRoi(list2); imp1.setRoi( sourcePoints ); imp2.setRoi( targetPoints ); }
PointMatch.sourcePoints( inliers2, points ); if ( Transforms.isIdentity( model, points, param.identityTolerance ) )
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) )
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) )
final static protected class MatchFeaturesAndFindModelThread extends Thread { final protected Param p; final protected List< AbstractAffineTile2D< ? > > tiles; //final protected HashMap< AbstractAffineTile2D< ? >, Collection< Feature > > tileFeatures; final protected List< AbstractAffineTile2D< ? >[] > tilePairs; final protected AtomicInteger ai; final protected AtomicInteger ap; final protected int steps; final protected boolean multipleHypotheses; public MatchFeaturesAndFindModelThread( final Param p, final List< AbstractAffineTile2D< ? > > tiles, final List< AbstractAffineTile2D< ? >[] > tilePairs, final AtomicInteger ai, final AtomicInteger ap, final int steps, final boolean multipleHypotheses ) { this.p = p; this.tiles = tiles; this.tilePairs = tilePairs; this.ai = ai; this.ap = ap; this.steps = steps; this.multipleHypotheses = multipleHypotheses; } public MatchFeaturesAndFindModelThread(
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) )
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) )
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) )
PointMatch.sourcePoints( mesh.getVA().keySet(), sourcePoints ); observer.clear(); BlockMatching.matchByMaximalPMCC(
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, p.identityTolerance ) ) final List< Point > targetPoints = new ArrayList<Point>(); PointMatch.sourcePoints( inliers, sourcePoints ); PointMatch.targetPoints( inliers, targetPoints );
PointMatch.sourcePoints( mesh.getVA().keySet(), sourcePoints ); observer.clear(); BlockMatching.matchByMaximalPMCC(
PointMatch.sourcePoints( inliers, p1 ); PointMatch.targetPoints( inliers, p2 ); imp1.setRoi( Util.pointsToPointRoi( p1 ) );
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, cp.identityTolerance ) )
PointMatch.sourcePoints( inliers, p1 ); PointMatch.targetPoints( inliers, p2 ); imp1.setRoi( Util.pointsToPointRoi( p1 ) );
PointMatch.sourcePoints( inliers, points ); if ( Transforms.isIdentity( model, points, param.identityTolerance * param.layerScale ) )
PointMatch.sourcePoints( inliers, p1 ); PointMatch.targetPoints( inliers, p2 ); imp1.setRoi( Util.pointsToPointRoi( p1 ) );
PointMatch.sourcePoints( inliers, p1 ); PointMatch.targetPoints( inliers, p2 ); imp1.setRoi( Util.pointsToPointRoi( p1 ) );
final ArrayList< Point > pm12Targets = new ArrayList< Point >(); PointMatch.sourcePoints( pm12, pm12Sources ); PointMatch.targetPoints( pm12, pm12Targets );
if(inliers.size() != 0) PointMatch.sourcePoints( inliers, sourcePoints ); PointMatch.targetPoints( inliers, targetPoints );