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 Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected final longprotected booleanprotected booleanprotected doubleFields inherited from class mpicbg.models.Point
l, w -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDetection(int id, double[] location) AbstractDetection(int id, double[] location, double weight) -
Method Summary
Modifier and TypeMethodDescriptionfloatdistanceTo(T o) booleanequals(AbstractDetection<?> otherDetection) floatget(int k) doubledoublegetDistance(mpicbg.models.Point point2) longgetID()intbooleangetUseW()doublebooleanisLeaf()booleanisUsed()voidresetW()voidsetDistance(double distance) voidsetUsed(boolean isUsed) voidsetUseW(boolean useW) voidsetW(double[] wn) voidsetWeight(double weight) toString()Methods inherited from class mpicbg.models.Point
apply, apply, apply, applyInverse, applyInverse, clone, distance, distance, getL, getW, localDistance, squareDistance, squareDistance, squareLocalDistanceMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface fiji.util.node.Leaf
createArray
-
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
-
setW
public void setW(double[] wn) -
resetW
public void resetW() -
getDistance
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfacefiji.util.node.Node<T extends AbstractDetection<T>>
-
distanceTo
- Specified by:
distanceToin interfacefiji.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:
getin interfacefiji.util.node.Leaf<T extends AbstractDetection<T>>
-
getNumDimensions
public int getNumDimensions()- Specified by:
getNumDimensionsin interfacefiji.util.node.Leaf<T extends AbstractDetection<T>>
-
toString
-