Package inra.ijpb.measure.region3d
Class LargestInscribedBall
java.lang.Object
- All Implemented Interfaces:
Algo
,AlgoListener
,RegionAnalyzer<Sphere>
public class LargestInscribedBall extends RegionAnalyzer3D<Sphere>
Computes the largest inscribed ball for each region of a label or binary
image.
- Author:
- dlegland
- See Also:
LargestInscribedCircle
-
Constructor Summary
Constructors Constructor Description LargestInscribedBall()
Empty constructor. -
Method Summary
Modifier and Type Method Description Sphere[]
analyzeRegions(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)
Computes largest inscribed ball of each region with a 3D label image.ij.measure.ResultsTable
createTable(java.util.Map<java.lang.Integer,Sphere> map)
Utility method that transforms the mapping between labels and inscribed ball instances into a ResultsTable that can be displayed with ImageJ.static Sphere[]
largestInscribedBalls(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)
Computes largest inscribed ball of each region with a 3D label image.Methods inherited from class inra.ijpb.measure.region3d.RegionAnalyzer3D
algoProgressChanged, algoStatusChanged, analyzeRegions, analyzeRegions, computeTable, createMap
Methods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LargestInscribedBall
public LargestInscribedBall()Empty constructor.
-
-
Method Details
-
largestInscribedBalls
public static final Sphere[] largestInscribedBalls(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)Computes largest inscribed ball of each region with a 3D label image. The regions must be disjoint.- Parameters:
labelImage
- the 3D input image containing label of particleslabels
- the set of labels within the imagecalib
- the spatial calibration of the image- Returns:
- an array of Sphere representing the inscribed balls of each region, in calibrated coordinates
-
createTable
Utility method that transforms the mapping between labels and inscribed ball instances into a ResultsTable that can be displayed with ImageJ.- Parameters:
map
- the mapping between labels and inscribed ball- Returns:
- a ResultsTable that can be displayed with ImageJ.
-
analyzeRegions
public Sphere[] analyzeRegions(ij.ImageStack labelImage, int[] labels, ij.measure.Calibration calib)Computes largest inscribed ball of each region with a 3D label image. The regions must be disjoint.- Specified by:
analyzeRegions
in classRegionAnalyzer3D<Sphere>
- Parameters:
labelImage
- the 3D input image containing label of particleslabels
- the set of labels within the imagecalib
- the spatial calibration of the image- Returns:
- an array of Sphere representing the inscribed balls of each region, in calibrated coordinates
-