Package inra.ijpb.measure.region3d
Class GeodesicDiameter3D
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.measure.region3d.RegionAnalyzer3D<GeodesicDiameter3D.Result>
inra.ijpb.measure.region3d.GeodesicDiameter3D
- All Implemented Interfaces:
Algo,AlgoListener,RegionAnalyzer<GeodesicDiameter3D.Result>
public class GeodesicDiameter3D extends RegionAnalyzer3D<GeodesicDiameter3D.Result> implements AlgoListener
Computes the 3D geodesic diameters of regions within a 3D binary or label
images using floating point computation for propagating distances.
Example of use:
GeodesicDiameter3D gd3d = new GeodesicDiameter3D(ChamferMask3D.BORGEFORS);
Map<Integer, GeodesicDiameter3D.Result> resMap = g3d.analyzeRegions(inputLabelImagePlus);
ResultsTable table = gd3d.createTable(resMap);
table.show("Geodesic Diameter 3D");
- Author:
- dlegland
- See Also:
GeodesicDiameter,GeodesicDistanceTransform3D,ChamferMask3D
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGeodesicDiameter3D.ResultInner class used for representing results of 3D geodesic diameters computations. -
Constructor Summary
Constructors Constructor Description GeodesicDiameter3D(ChamferMask3D mask)Creates a new 3D geodesic diameter computation operator. -
Method Summary
Modifier and Type Method Description voidalgoProgressChanged(AlgoEvent evt)The method devoted to manage the change in the progression of the algorithm.voidalgoStatusChanged(AlgoEvent evt)The method devoted to manage the change in the status of the algorithm.GeodesicDiameter3D.Result[]analyzeRegions(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)Computes the geodesic diameter of each particle within the given label image.ij.measure.ResultsTablecreateTable(java.util.Map<java.lang.Integer,GeodesicDiameter3D.Result> map)Utility method that converts the detailed results of theRegionAnalyzer.analyzeRegions(ImagePlus)method into an instance of ResultsTable to facilitate display by ImageJ.Methods inherited from class inra.ijpb.measure.region3d.RegionAnalyzer3D
analyzeRegions, analyzeRegions, computeTable, createMapMethods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListenerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GeodesicDiameter3D
Creates a new 3D geodesic diameter computation operator.- Parameters:
mask- an instance of ChamferMask3D, which provides the float values used for propagating distances
-
-
Method Details
-
createTable
public ij.measure.ResultsTable createTable(java.util.Map<java.lang.Integer,GeodesicDiameter3D.Result> map)Description copied from interface:RegionAnalyzerUtility method that converts the detailed results of theRegionAnalyzer.analyzeRegions(ImagePlus)method into an instance of ResultsTable to facilitate display by ImageJ.- Specified by:
createTablein interfaceRegionAnalyzer<GeodesicDiameter3D.Result>- Parameters:
map- the mapping between each region label and the result of the analysis- Returns:
- an instance of ResultsTable containing results presented in a tabular format.
-
analyzeRegions
public GeodesicDiameter3D.Result[] analyzeRegions(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)Computes the geodesic diameter of each particle within the given label image.- Specified by:
analyzeRegionsin classRegionAnalyzer3D<GeodesicDiameter3D.Result>- Parameters:
labelImage- a 3D label image, containing either the label of a particle or region, or zero for backgroundlabels- the array of region labels to processcalib- the spatial calibration if the image- Returns:
- an array of Result instances containing for each label the geodesic diameter of the corresponding particle
-
algoProgressChanged
Description copied from interface:AlgoListenerThe method devoted to manage the change in the progression of the algorithm.- Specified by:
algoProgressChangedin interfaceAlgoListener- Overrides:
algoProgressChangedin classRegionAnalyzer3D<GeodesicDiameter3D.Result>- Parameters:
evt- the AlgoEvent instance containing info about the algorithm.
-
algoStatusChanged
Description copied from interface:AlgoListenerThe method devoted to manage the change in the status of the algorithm.- Specified by:
algoStatusChangedin interfaceAlgoListener- Overrides:
algoStatusChangedin classRegionAnalyzer3D<GeodesicDiameter3D.Result>- Parameters:
evt- the AlgoEvent instance containing info about the algorithm.
-