Package sc.fiji.snt.tracing.cost
Class Reciprocal
java.lang.Object
sc.fiji.snt.tracing.cost.Reciprocal
- All Implemented Interfaces:
Cost
Uses the reciprocal of voxel intensity, rescaled to the interval (double precision)
255 * (intensity - min) / (max - min)
to compute the cost of moving to a neighbor node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RECIPROCAL_FUDGE
public static final double RECIPROCAL_FUDGE- See Also:
-
CONST_8
public static final double CONST_8- See Also:
-
MIN_COST_PER_UNIT_DISTANCE
public static final double MIN_COST_PER_UNIT_DISTANCE- See Also:
-
-
Constructor Details
-
Reciprocal
public Reciprocal(double min, double max)
-
-
Method Details
-
costMovingTo
public double costMovingTo(double valueAtNewPoint) - Specified by:
costMovingToin interfaceCost
-
minStepCost
public double minStepCost()- Specified by:
minStepCostin interfaceCost
-