Class AbstractPointDescriptor<P extends mpicbg.models.Point,F extends AbstractPointDescriptor<P,F>>

java.lang.Object
net.preibisch.mvrecon.process.pointcloud.pointdescriptor.AbstractPointDescriptor<P,F>
Direct Known Subclasses:
LocalCoordinateSystemPointDescriptor, ModelPointDescriptor, SimplePointDescriptor, TranslationInvariantLocalCoordinateSystemPointDescriptor

public abstract class AbstractPointDescriptor<P extends mpicbg.models.Point,F extends AbstractPointDescriptor<P,F>> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • descriptorDistance

      public double descriptorDistance(F pointDescriptor)
      Matches two AbstractPointDescriptors of the same kind yielding a similarity value, the lower the better (0 means identical)
      Parameters:
      pointDescriptor - - the AbstractPointDescriptor to match
      Returns:
      similarity
    • getBestPointMatchSet

      public ArrayList<mpicbg.models.PointMatch> getBestPointMatchSet()
      The combination of descriptorpoints that yielded the best similarity in the last comparison
      Returns:
      - List of PointMatches containing the original datasets
    • resetWorldCoordinates

      protected void resetWorldCoordinates()
      Resets the world coordinates of the descriptorPoints
    • fitMatches

      public abstract Object fitMatches(ArrayList<mpicbg.models.PointMatch> matches)
      Computes a fit between this these PointMatches, this method is called by the Matcher
      Parameters:
      matches - - The Points to match
      Returns:
      - a transformation
    • resetWorldCoordinatesAfterMatching

      public abstract boolean resetWorldCoordinatesAfterMatching()
      Tells if the descriptormatching should reset the world coordinates after the matching
      Returns:
      if reseting world coordinates
    • useWorldCoordinatesForDescriptorBuildUp

      public abstract boolean useWorldCoordinatesForDescriptorBuildUp()
      Tells if the build up of the descriptor should use the world coordinates or rather the local coordinates
      Returns:
      - true (world), false(local)
    • getSimilarityMeasure

      public SimilarityMeasure getSimilarityMeasure()
      Returns:
      The SimilarityMeasure object that is used to compute how similar two descriptors are
    • setSimilarityMeasure

      public void setSimilarityMeasure(SimilarityMeasure similarityMeasure)
      Sets the SimilarityMeasure object that is used to compute how similar two descriptors are
      Parameters:
      similarityMeasure - - which similarity measure
    • getId

      public long getId()
      Return the unique id of this descriptor
      Returns:
      long id
    • getBasisPoint

      public P getBasisPoint()
      The basis point for this descriptor
      Returns:
      the Point instance
    • getDescriptorPoint

      public mpicbg.models.Point getDescriptorPoint(int index)
      Returns a certain nearest neighbor (relative to the basis point) of this AbstractPointDescriptor
      Parameters:
      index - - the index (0 means first nearest neighbor)
      Returns:
      the Point instance
    • getOrderedNearestNeighboringPoints

      public ArrayList<P> getOrderedNearestNeighboringPoints()
    • numNeighbors

      public int numNeighbors()
      The number of neighbors used for this descriptor
      Returns:
      - int number
    • numDimensions

      public int numDimensions()
      Dimensionality of the Points of this AbstractPointDescriptor
      Returns:
      - int dimensions
    • toString

      public String toString()
      Overwrites the toString method
      Overrides:
      toString in class Object