Skip to content

Commit

Permalink
Add radius for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Jan 28, 2025
1 parent dbf7d5a commit 12abaae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.janelia.alignment.match;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import mpicbg.ij.FeatureTransform;
Expand All @@ -23,6 +22,7 @@ public class CanvasFeatureMatcher implements Serializable {

private final float rod;
private final MatchFilter matchFilter;
private final double renderScale;

/**
* Sets up everything that is needed to derive point matches from the feature lists of two canvases.
Expand All @@ -31,6 +31,7 @@ public CanvasFeatureMatcher(final MatchDerivationParameters matchParameters,
final double renderScale) {
this.rod = matchParameters.matchRod;
this.matchFilter = new MatchFilter(matchParameters, renderScale);
this.renderScale = renderScale;
}

public MatchFilter getMatchFilter() {
Expand All @@ -55,7 +56,7 @@ public CanvasMatchResult deriveMatchResult(final List<Feature> canvas1Features,
// final List<PointMatch> candidates = new ArrayList<>(canvas1Features.size());
// FeatureTransform.matchFeatures(canvas1Features, canvas2Features, candidates, rod);

final double radius = 300 * 0.8;
final double radius = 300 * renderScale;
final List<PointMatch> candidates = FeatureTransform.matchFeaturesLocally(canvas1Features, canvas2Features, radius, rod);

final CanvasMatchResult result = matchFilter.buildMatchResult(candidates);
Expand Down

0 comments on commit 12abaae

Please sign in to comment.