T
- the type of the data computed for each region. May be a class
instance, or a single Numeric type.public abstract class RegionAnalyzer3D<T> extends AlgoStub implements RegionAnalyzer<T>, AlgoListener
RegionAnalyzer2D
Constructor and Description |
---|
RegionAnalyzer3D() |
Modifier and Type | Method and Description |
---|---|
void |
algoProgressChanged(AlgoEvent evt)
The method devoted to manage the change in the progression of the
algorithm.
|
void |
algoStatusChanged(AlgoEvent evt)
The method devoted to manage the change in the status of the
algorithm.
|
Map<Integer,T> |
analyzeRegions(ij.ImagePlus labelPlus)
Default implementation of the analyzeRegions method, that calls the more
specialized
analyzeRegions(ImageStack, int[], ij.measure.Calibration)
method and transforms the result into a map. |
Map<Integer,T> |
analyzeRegions(ij.ImageStack image,
ij.measure.Calibration calib)
Identifies labels within image and computes an instance of the generic
type T for each region in input label image.
|
abstract T[] |
analyzeRegions(ij.ImageStack image,
int[] labels,
ij.measure.Calibration calib)
Computes an instance of the generic type T for each region in input label image.
|
ij.measure.ResultsTable |
computeTable(ij.ImagePlus labelPlus)
Default implementation of computeTable method, using the two other
methods
analyzeRegions(ImagePlus) and RegionAnalyzer.createTable(Map) : |
static <T2> Map<Integer,T2> |
createMap(int[] labels,
T2[] data)
Utility method that convert an array of result into a map using labels as
keys.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTable
public static final <T2> Map<Integer,T2> createMap(int[] labels, T2[] data)
T2
- the type of data measured for each labellabels
- the array of labels to use as keysdata
- the array of objects to mappublic abstract T[] analyzeRegions(ij.ImageStack image, int[] labels, ij.measure.Calibration calib)
image
- the input 3D image containing label of particleslabels
- the array of labels within the imagecalib
- the spatial calibration of the imagepublic Map<Integer,T> analyzeRegions(ij.ImageStack image, ij.measure.Calibration calib)
image
- a 3D label image (8, 16 or 32 bits)calib
- the spatial calibration of the imagepublic Map<Integer,T> analyzeRegions(ij.ImagePlus labelPlus)
analyzeRegions(ImageStack, int[], ij.measure.Calibration)
method and transforms the result into a map.analyzeRegions
in interface RegionAnalyzer<T>
labelPlus
- the input image containing label of regionspublic ij.measure.ResultsTable computeTable(ij.ImagePlus labelPlus)
analyzeRegions(ImagePlus)
and RegionAnalyzer.createTable(Map)
:computeTable
in interface RegionAnalyzer<T>
labelPlus
- a label or binary image of region(s)public void algoProgressChanged(AlgoEvent evt)
AlgoListener
algoProgressChanged
in interface AlgoListener
evt
- the AlgoEvent instance containing info about the algorithm.public void algoStatusChanged(AlgoEvent evt)
AlgoListener
algoStatusChanged
in interface AlgoListener
evt
- the AlgoEvent instance containing info about the algorithm.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.