Class AbstractDetection<T extends AbstractDetection<T>>

java.lang.Object
mpicbg.models.Point
net.preibisch.legacy.registration.detection.AbstractDetection<T>
All Implemented Interfaces:
fiji.util.node.Leaf<T>, fiji.util.node.Node<T>, Serializable
Direct Known Subclasses:
Detection

public abstract class AbstractDetection<T extends AbstractDetection<T>> extends mpicbg.models.Point implements fiji.util.node.Leaf<T>
See Also:
  • Field Details

    • id

      protected final long id
    • weight

      protected double weight
    • useW

      protected boolean useW
    • distance

      protected double distance
    • isUsed

      protected boolean isUsed
  • Constructor Details

    • AbstractDetection

      public AbstractDetection(int id, double[] location)
    • AbstractDetection

      public AbstractDetection(int id, double[] location, double weight)
  • Method Details

    • setWeight

      public void setWeight(double weight)
    • getWeight

      public double getWeight()
    • getID

      public long getID()
    • setDistance

      public void setDistance(double distance)
    • getDistance

      public double getDistance()
    • isUsed

      public boolean isUsed()
    • setUsed

      public void setUsed(boolean isUsed)
    • equals

      public boolean equals(AbstractDetection<?> otherDetection)
    • setW

      public void setW(double[] wn)
    • resetW

      public void resetW()
    • getDistance

      public double getDistance(mpicbg.models.Point point2)
    • isLeaf

      public boolean isLeaf()
      Specified by:
      isLeaf in interface fiji.util.node.Node<T extends AbstractDetection<T>>
    • distanceTo

      public float distanceTo(T o)
      Specified by:
      distanceTo in interface fiji.util.node.Leaf<T extends AbstractDetection<T>>
    • setUseW

      public void setUseW(boolean useW)
    • getUseW

      public boolean getUseW()
    • get

      public float get(int k)
      Specified by:
      get in interface fiji.util.node.Leaf<T extends AbstractDetection<T>>
    • getNumDimensions

      public int getNumDimensions()
      Specified by:
      getNumDimensions in interface fiji.util.node.Leaf<T extends AbstractDetection<T>>
    • toString

      public String toString()
      Overrides:
      toString in class Object