mpicbg.imagefeatures
Class Feature

java.lang.Object
  extended by mpicbg.imagefeatures.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>

public class Feature
extends Object
implements Comparable<Feature>, Serializable

Local image feature TODO Replace the Transformation descriptors by a InverseCoordinateTransform. Think about by hwich means to compare then!

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
 float[] descriptor
           
 double[] location
           
 double orientation
           
 double scale
           
 
Constructor Summary
Feature()
          Dummy constructor for Serialization to work properly.
Feature(double s, double o, double[] l, float[] d)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scale

public double scale

orientation

public double orientation

location

public double[] location

descriptor

public float[] descriptor
Constructor Detail

Feature

public Feature()
Dummy constructor for Serialization to work properly.


Feature

public Feature(double s,
               double o,
               double[] l,
               float[] d)
Method Detail

compareTo

public final int compareTo(Feature f)
Comparator for making Features sortable. Please note, that the comparator returns -1 for this.scale > o.scale to sort the features in a descending order.

Specified by:
compareTo in interface Comparable<Feature>

descriptorDistance

public final double descriptorDistance(Feature f)

matchFeatures

public static final int matchFeatures(List<Feature> fs1,
                                      List<Feature> fs2,
                                      List<PointMatch> matches,
                                      double rod)
Identify corresponding features

Parameters:
fs1 - feature collection from set 1
fs2 - feature collection from set 2
rod - Ratio of distances (closest/next closest match)
Returns:
matches


Copyright © 2007-2016 Fiji. All Rights Reserved.