public class Centroid extends RegionAnalyzer2D<Point2D>
EquivalentEllipse, 
Centroid3D| Constructor and Description | 
|---|
Centroid()
Default constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Point2D[] | 
analyzeRegions(ij.process.ImageProcessor image,
              int[] labels,
              ij.measure.Calibration calib)
Computes centroid of each region in input label image. 
 | 
static double[][] | 
centroids(ij.process.ImageProcessor labelImage,
         int[] labels)
Computes centroid of each label in input image and returns the result as
 an array of double for each label. 
 | 
static Point2D[] | 
centroids(ij.process.ImageProcessor labelImage,
         int[] labels,
         ij.measure.Calibration calib)
Computes centroid of each label in input image and returns the result as
 an array of double for each label. 
 | 
ij.measure.ResultsTable | 
createTable(Map<Integer,Point2D> map)
Utility method that transforms the mapping between labels and Point2D
 instances into a ResultsTable that can be displayed with ImageJ. 
 | 
analyzeRegions, analyzeRegions, computeTableaddAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListenerpublic static final Point2D[] centroids(ij.process.ImageProcessor labelImage, int[] labels, ij.measure.Calibration calib)
labelImage - the input image containing label of particleslabels - the array of unique labels in image the number of directions
            to process, either 2 or 4calib - the calibration of the imagepublic static final double[][] centroids(ij.process.ImageProcessor labelImage,
                                         int[] labels)
labelImage - the input image containing label of particleslabels - the array of unique labels in image the number of directions
            to process, either 2 or 4public ij.measure.ResultsTable createTable(Map<Integer,Point2D> map)
map - the mapping between labels and centroidspublic Point2D[] analyzeRegions(ij.process.ImageProcessor image, int[] labels, ij.measure.Calibration calib)
analyzeRegions in class RegionAnalyzer2D<Point2D>image - the input image containing label of particleslabels - the array of labels within the imagecalib - the calibration of the imageCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.