public class Centroid3D extends RegionAnalyzer3D<Point3D>
| Constructor and Description | 
|---|
Centroid3D()
Default constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Point3D[] | 
analyzeRegions(ij.ImageStack image,
              int[] labels,
              ij.measure.Calibration calib)
Computes centroid of each region in input label image. 
 | 
static double[][] | 
centroids(ij.ImageStack labelImage,
         int[] labels)
Computes centroid of each label in input image and returns the result as
 an array of double for each label. 
 | 
static Point3D[] | 
centroids(ij.ImageStack labelImage,
         int[] labels,
         ij.measure.Calibration calib)
Compute centroid of each region in input 3D label image and returns the
 result as an array of Point3D. 
 | 
ij.measure.ResultsTable | 
createTable(Map<Integer,Point3D> map)
Utility method that transforms the mapping between labels and Point3D
 instances into a ResultsTable that can be displayed with ImageJ. 
 | 
algoProgressChanged, algoStatusChanged, analyzeRegions, analyzeRegions, computeTable, createMapaddAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListenerpublic static final Point3D[] centroids(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)
labelImage - the input image containing region labelslabels - the array of unique labels in imagecalib - the calibration of the imagepublic static final double[][] centroids(ij.ImageStack 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,Point3D> map)
map - the mapping between labels and Point3Dspublic Point3D[] analyzeRegions(ij.ImageStack image, int[] labels, ij.measure.Calibration calib)
analyzeRegions in class RegionAnalyzer3D<Point3D>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.