Package inra.ijpb.measure
Class GeometricMeasures2D
java.lang.Object
inra.ijpb.measure.GeometricMeasures2D
@Deprecated
public class GeometricMeasures2D
extends java.lang.Object
Deprecated.
use IntrinsicVolumes2D instead
Provides a set of static methods to compute geometric measures such as area,
perimeter, and their densities in planar binary or label images.
- Author:
- David Legland
- See Also:
IntrinsicVolumes2D
-
Field Summary
Fields Modifier and Type Field Description static boolean
debug
Deprecated.option for debugging -
Method Summary
Modifier and Type Method Description static ij.measure.ResultsTable
analyzeRegions(ij.process.ImageProcessor labelImage, double[] resol)
Deprecated.static ij.measure.ResultsTable
analyzeRegions(ij.process.ImageProcessor labelImage, double[] resol, int nDirs)
Deprecated.static double[]
area(ij.process.ImageProcessor image, int[] labels, double[] resol)
Deprecated.static ij.measure.ResultsTable
boundingBox(ij.process.ImageProcessor labelImage)
Deprecated.use BoundingBox class insteadstatic double[][]
boundingBox(ij.process.ImageProcessor labelImage, int[] labels)
Deprecated.use BoundingBox class insteadstatic double[][]
centroids(ij.process.ImageProcessor labelImage, int[] labels)
Deprecated.replaced by Centroid.centroidsstatic ij.measure.ResultsTable
croftonPerimeter(ij.process.ImageProcessor labelImage, double[] resol, int nDirs)
Deprecated.use analyzeRegions insteadstatic double[]
croftonPerimeter(ij.process.ImageProcessor image, int[] labels, double[] resol, int nDirs)
Deprecated.replaced byIntrinsicVolumes2D
static double[]
croftonPerimeterD2(ij.process.ImageProcessor labelImage, int[] labels, double[] resol)
Deprecated.replaced byIntrinsicVolumes2D
static double[]
croftonPerimeterD4(ij.process.ImageProcessor labelImage, int[] labels, double[] resol)
Deprecated.replaced byIntrinsicVolumes2D
static ij.measure.ResultsTable
inertiaEllipse(ij.process.ImageProcessor image)
Deprecated.use inra.ijpb.measure.region2d.InertiaEllipse insteadstatic ij.measure.ResultsTable
maximumInscribedCircle(ij.process.ImageProcessor labelImage)
Deprecated.use class inra.ijpb.measure.region2d.largestInscribedCircle insteadstatic ij.measure.ResultsTable
maximumInscribedCircle(ij.process.ImageProcessor labelImage, double[] resol)
Deprecated.use class inra.ijpb.measure.region2d.largestInscribedCircle insteadstatic int
particleArea(ij.process.ImageProcessor image, int label)
Deprecated.static ij.measure.ResultsTable
perimeterDensity(ij.process.ImageProcessor image, double[] resol, int nDirs)
Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
debug
public static boolean debugDeprecated.option for debugging
-
-
Method Details
-
analyzeRegions
@Deprecated public static final ij.measure.ResultsTable analyzeRegions(ij.process.ImageProcessor labelImage, double[] resol)Deprecated.Computes several morphometric features for each region in the input label image.- Parameters:
labelImage
- the input image containing label of particlesresol
- the spatial resolution- Returns:
- a data table containing the area, the perimeter and the "circularity" of each labeled particle
-
analyzeRegions
@Deprecated public static final ij.measure.ResultsTable analyzeRegions(ij.process.ImageProcessor labelImage, double[] resol, int nDirs)Deprecated.Computes several morphometric features for each region in the input label image and specifying number of directions to use for measuring perimeter.- Parameters:
labelImage
- the input image containing label of particlesresol
- the spatial resolutionnDirs
- the number of directions for perimeter measure- Returns:
- a data table containing the area, the perimeter and the "circularity" of each labeled particle
-
boundingBox
@Deprecated public static final ij.measure.ResultsTable boundingBox(ij.process.ImageProcessor labelImage)Deprecated.use BoundingBox class insteadCompute bounding box of each label in input stack and returns the result as a ResultsTable.- Parameters:
labelImage
- the input image containing label of particles- Returns:
- a data table containing for each labeled particle the extent in each dimension
- See Also:
BoundingBox.analyzeRegions(ImageProcessor, int[], Calibration)
-
boundingBox
@Deprecated public static final double[][] boundingBox(ij.process.ImageProcessor labelImage, int[] labels)Deprecated.use BoundingBox class insteadCompute bounding box of each label in input stack and returns the result as an array of double for each label.- Parameters:
labelImage
- the input image containing label of particleslabels
- an array of unique labels in image- Returns:
- a data table containing for each labeled particle the extent in each dimension
- See Also:
BoundingBox.boundingBoxes(ImageProcessor, int[], Calibration)
-
area
@Deprecated public static final double[] area(ij.process.ImageProcessor image, int[] labels, double[] resol)Deprecated.Computes the area for each particle in the label image, taking into account image resolution.- Parameters:
image
- the input image containing label of particleslabels
- the array of unique labels in imageresol
- the size of a pixel in each direction- Returns:
- the area of each region
- See Also:
IntrinsicVolumes2D.areas(ImageProcessor, int[], Calibration)
-
particleArea
@Deprecated public static final int particleArea(ij.process.ImageProcessor image, int label)Deprecated.Counts the number of pixel that composes the particle with given label.- Parameters:
image
- the input image containing label of particleslabel
- the label of the region to process- Returns:
- the number of pixels of the specified region
-
croftonPerimeter
@Deprecated public static final ij.measure.ResultsTable croftonPerimeter(ij.process.ImageProcessor labelImage, double[] resol, int nDirs)Deprecated.use analyzeRegions insteadComputes perimeter of each label using Crofton method.- Parameters:
labelImage
- the input image containing label of particlesnDirs
- the number of directions to process, either 2 or 4resol
- the spatial resolution- Returns:
- a data table containing the perimeter of each labeled particle
- See Also:
analyzeRegions(ij.process.ImageProcessor, double[])
-
croftonPerimeter
@Deprecated public static final double[] croftonPerimeter(ij.process.ImageProcessor image, int[] labels, double[] resol, int nDirs)Deprecated.replaced byIntrinsicVolumes2D
Compute surface area for each label given in the "labels" argument. Consists in calling theIntrinsicVolumes2D
class.- Parameters:
image
- the input image containing label of particleslabels
- the array of unique labels in imageresol
- the spatial resolutionnDirs
- the number of directions to process, either 2 or 4- Returns:
- an array containing for each label, an estimate of the region perimeter
-
croftonPerimeterD2
@Deprecated public static final double[] croftonPerimeterD2(ij.process.ImageProcessor labelImage, int[] labels, double[] resol)Deprecated.replaced byIntrinsicVolumes2D
Computes perimeter of each label using Crofton method with 2 directions. Iterates over labels, then iterates over lines in horizontal and vertical directions. Slow... Consists in calling theIntrinsicVolumes2D
class.- Parameters:
labelImage
- the input image containing label of particleslabels
- the array of unique labels in imageresol
- the spatial resolution- Returns:
- an array containing for each label, an estimate of the region perimeter
-
croftonPerimeterD4
@Deprecated public static final double[] croftonPerimeterD4(ij.process.ImageProcessor labelImage, int[] labels, double[] resol)Deprecated.replaced byIntrinsicVolumes2D
Computes perimeter of each label using Crofton method with 4 directions (orthogonal and diagonal). Iterates over labels, then iterates over lines in the four main directions. Slow... Consists in calling theIntrinsicVolumes2D
class.- Parameters:
labelImage
- the input image containing label of particleslabels
- the array of unique labels in imageresol
- the spatial resolution- Returns:
- an array containing for each label, an estimate of the region perimeter
-
perimeterDensity
@Deprecated public static final ij.measure.ResultsTable perimeterDensity(ij.process.ImageProcessor image, double[] resol, int nDirs)Deprecated.Computes porosity and perimeter density of binary image.- Parameters:
image
- the input binary imageresol
- the spatial resolutionnDirs
- the number of directions to consider, either 2 or 4- Returns:
- a results table containing for each label, an estimate of the region perimeter
-
centroids
@Deprecated public static final double[][] centroids(ij.process.ImageProcessor labelImage, int[] labels)Deprecated.replaced by Centroid.centroidsCompute centroid of each label in input stack and returns the result as an array of double for each label.- Parameters:
labelImage
- the input image containing label of particleslabels
- the array of unique labels in image the number of directions to process, either 2 or 4- Returns:
- an array containing for each label, the coordinates of the centroid, in pixel coordinates
- See Also:
Centroid.centroids(ImageProcessor, int[])
-
inertiaEllipse
@Deprecated public static final ij.measure.ResultsTable inertiaEllipse(ij.process.ImageProcessor image)Deprecated.use inra.ijpb.measure.region2d.InertiaEllipse insteadComputes inertia ellipse of each region in input label image.- Parameters:
image
- the input image containing label of particles- Returns:
- an ResultsTable containing for each label, the parameters of the inertia ellipsoid, in pixel coordinates
-
maximumInscribedCircle
@Deprecated public static final ij.measure.ResultsTable maximumInscribedCircle(ij.process.ImageProcessor labelImage)Deprecated.use class inra.ijpb.measure.region2d.largestInscribedCircle insteadComputes radius and center of maximum inscribed disk of each particle. Particles must be disjoint.- Parameters:
labelImage
- the input image containing label of particles- Returns:
- a ResultsTable with as many rows as the number of unique labels in label image, and columns "Label", "xi", "yi" and "Radius".
-
maximumInscribedCircle
@Deprecated public static final ij.measure.ResultsTable maximumInscribedCircle(ij.process.ImageProcessor labelImage, double[] resol)Deprecated.use class inra.ijpb.measure.region2d.largestInscribedCircle insteadRadius of maximum inscribed disk of each particle. Particles must be disjoint.- Parameters:
labelImage
- the input image containing label of particlesresol
- an array containing the size of the pixel in each direction- Returns:
- a ResultsTable with as many rows as the number of unique labels in label image, and columns "Label", "xi", "yi" and "Radius".
-