public class MaxFeretDiameter extends RegionAnalyzer2D<PointPair2D>
MaxFeretDiameter3D
Constructor and Description |
---|
MaxFeretDiameter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
PointPair2D |
analyzeBinary(ij.process.ImageProcessor image,
double[] calib)
Computes Maximum Feret diameter from a single region in a binary image.
|
PointPair2D[] |
analyzeRegions(ij.process.ImageProcessor image,
int[] labels,
ij.measure.Calibration calib)
Computes maximum Feret Diameter for each label of the input label image.
|
ij.measure.ResultsTable |
createTable(Map<Integer,PointPair2D> maxDiamsMap)
Converts the result of maximum Feret diameters computation to a
ResultsTable that can be displayed within ImageJ.
|
static PointPair2D[] |
maxFeretDiameters(ij.process.ImageProcessor image,
int[] labels,
ij.measure.Calibration calib)
Computes Feret diameters as a PointPair2D for each of the specified
regions within a label map.
|
analyzeRegions, analyzeRegions, computeTable
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
public static final PointPair2D[] maxFeretDiameters(ij.process.ImageProcessor image, int[] labels, ij.measure.Calibration calib)
image
- the label map corresponding to the label imagelabels
- the array of region labels to processcalib
- the spatial calibration of the imagepublic ij.measure.ResultsTable createTable(Map<Integer,PointPair2D> maxDiamsMap)
maxDiamsMap
- the map of PointPair2D for each label within a label imagepublic PointPair2D[] analyzeRegions(ij.process.ImageProcessor image, int[] labels, ij.measure.Calibration calib)
analyzeRegions
in class RegionAnalyzer2D<PointPair2D>
image
- a label image (8, 16 or 32 bits)labels
- the set of labels within the imagecalib
- the spatial calibration of the imagepublic PointPair2D analyzeBinary(ij.process.ImageProcessor image, double[] calib)
image
- a binary image representing the particle.calib
- the spatial calibrationCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.