T
- the type of the data computed for each region. May be a class
instance, or a single Numeric type.public interface RegionAnalyzer<T>
Modifier and Type | Method and Description |
---|---|
Map<Integer,T> |
analyzeRegions(ij.ImagePlus labelPlus)
Generic method to compute the result of an analysis on each region of a
label or binary image.
|
ij.measure.ResultsTable |
computeTable(ij.ImagePlus labelPlus)
Returns the result of the analysis in the form of a ResultsTable, to
facilitate concatenation of results obtained from several instances of
RegionAnalyzer.
|
ij.measure.ResultsTable |
createTable(Map<Integer,T> results)
Utility method that converts the detailed results of the
analyzeRegions(ImagePlus) method into an instance of
ResultsTable to facilitate display by ImageJ. |
Map<Integer,T> analyzeRegions(ij.ImagePlus labelPlus)
labelPlus
- a label or binary image of region(s)ij.measure.ResultsTable computeTable(ij.ImagePlus labelPlus)
Returns the result of the analysis in the form of a ResultsTable, to facilitate concatenation of results obtained from several instances of RegionAnalyzer.
This method can be quickly implemented by using the two other methods analyzeRegions(ImagePlus)
and createTable(Map)
:
public ResultsTable computeTable(ImagePlus labelPlus)
{
return createTable(analyzeRegions(labelPlus));
}
labelPlus
- a label or binary image of region(s)ij.measure.ResultsTable createTable(Map<Integer,T> results)
analyzeRegions(ImagePlus)
method into an instance of
ResultsTable to facilitate display by ImageJ.results
- the mapping between each region label and the result of the
analysisCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.