Package inra.ijpb.binary.geodesic
Class GeodesicDiameterFloat
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.binary.geodesic.GeodesicDiameterFloat
- All Implemented Interfaces:
Algo
,GeodesicDiameter
@Deprecated public class GeodesicDiameterFloat extends AlgoStub implements GeodesicDiameter
Deprecated.
since 1.3.5, use inra.ijpb.measure.region2d.GeodesicDiameter instead
Computes geodesic diameter of a set of labeled particles or regions, using
floating point values for propagating chamfer distances.
This version uses optimized algorithm, that propagates distances of all
particles during each pass. This reduces computation overhead due to
iteration over particles.
Example of use:
GeodesicDiameterFloat gd = new GeodesicDiameterFloat(ChamferWeights.CHESSKNIGHT);
ResultsTable table = gd.analyseImage(inputLabelImage);
table.show("Geodesic Diameter");
- Author:
- dlegland
- See Also:
GeodesicDiameter
-
Constructor Summary
Constructors Constructor Description GeodesicDiameterFloat(float[] weights)
Deprecated.Creates a new geodesic diameter computation operator.GeodesicDiameterFloat(ChamferWeights chamferWeights)
Deprecated.Creates a new geodesic diameter computation operator. -
Method Summary
Modifier and Type Method Description ij.measure.ResultsTable
analyzeImage(ij.process.ImageProcessor labelImage)
Deprecated.Computes the geodesic diameter of each particle within the given label image.java.util.Map<java.lang.Integer,java.util.List<java.awt.Point>>
longestGeodesicPaths()
Deprecated.Computes the geodesic path of each particle within the given label image.Methods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListener
-
Constructor Details
-
GeodesicDiameterFloat
Deprecated.Creates a new geodesic diameter computation operator.- Parameters:
chamferWeights
- an instance of ChamferWeights, which provides the float values used for propagating distances
-
GeodesicDiameterFloat
public GeodesicDiameterFloat(float[] weights)Deprecated.Creates a new geodesic diameter computation operator.- Parameters:
weights
- the array of weights for orthogonal, diagonal, and eventually chess-knight moves neighbors
-
-
Method Details
-
analyzeImage
public ij.measure.ResultsTable analyzeImage(ij.process.ImageProcessor labelImage)Deprecated.Computes the geodesic diameter of each particle within the given label image.- Specified by:
analyzeImage
in interfaceGeodesicDiameter
- Parameters:
labelImage
- a label image, containing either the label of a particle or region, or zero for background- Returns:
- a ResultsTable containing for each label the geodesic diameter of the corresponding particle
-
longestGeodesicPaths
public java.util.Map<java.lang.Integer,java.util.List<java.awt.Point>> longestGeodesicPaths()Deprecated.Computes the geodesic path of each particle within the given label image. Assumes the geodesic distance map has already been computed after a call to the "analyzeImage" method.- Returns:
- A map that associate to each integer label the list of positions that constitutes the geodesic path
-