public class Feature extends Object implements Comparable<Feature>, Serializable
Transformation
descriptors by a InverseCoordinateTransform
. Think about by
hwich means to compare then!Modifier and Type | Field and Description |
---|---|
float[] |
descriptor |
double[] |
location |
double |
orientation |
double |
scale |
Constructor and Description |
---|
Feature()
Dummy constructor for Serialization to work properly.
|
Feature(double s,
double o,
double[] l,
float[] d) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Feature f)
Comparator for making
Features sortable. |
double |
descriptorDistance(Feature f) |
static int |
matchFeatures(List<Feature> fs1,
List<Feature> fs2,
List<PointMatch> matches,
double rod)
Identify corresponding features
|
public double scale
public double orientation
public double[] location
public float[] descriptor
public Feature()
public Feature(double s, double o, double[] l, float[] d)
public final int compareTo(Feature f)
Features
sortable.
Please note, that the comparator returns -1 for
this.scale
> o.scale
to sort the
features in a descending order.compareTo
in interface Comparable<Feature>
public final double descriptorDistance(Feature f)
public static final int matchFeatures(List<Feature> fs1, List<Feature> fs2, List<PointMatch> matches, double rod)
fs1
- feature collection from set 1fs2
- feature collection from set 2rod
- Ratio of distances (closest/next closest match)Copyright © 2015–2021 Fiji. All rights reserved.