public class IntrinsicVolumes2D extends Object
IntrinsicVolumes3D
,
IntrinsicVolumesAnalyzer2D
,
IntrinsicVolumes2DUtils
Modifier and Type | Method and Description |
---|---|
static double |
area(ij.process.ImageProcessor image,
ij.measure.Calibration calib)
Measures the area of the foreground region within a binary image.
|
static double |
areaDensity(ij.process.ImageProcessor image)
Computes the area density for the 2D binary microstructure.
|
static double[] |
areas(ij.process.ImageProcessor image,
int[] labels,
ij.measure.Calibration calib)
Measures the area of each region within a label image, taking into
account image resolution.
|
static int |
eulerNumber(ij.process.ImageProcessor image,
int conn)
Measures the Euler number of the region within the binary image, using
the specified connectivity.
|
static double |
eulerNumberDensity(ij.process.ImageProcessor image,
ij.measure.Calibration calib,
int conn)
Measures the Euler number density of the foreground region within a
binary image, using the specified connectivity.
|
static int[] |
eulerNumbers(ij.process.ImageProcessor image,
int[] labels,
int conn)
Measures the Euler number of each region given in the "labels" argument,
using the specified connectivity.
|
static double |
perimeter(ij.process.ImageProcessor image,
ij.measure.Calibration calib,
int nDirs)
Measures the perimeter of the foreground region within a binary image.
|
static double |
perimeterDensity(ij.process.ImageProcessor image,
ij.measure.Calibration calib,
int nDirs)
Computes perimeter density of binary image.
|
static double[] |
perimeters(ij.process.ImageProcessor image,
int[] labels,
ij.measure.Calibration calib,
int nDirs)
Measures the perimeter of each region within a label image.
|
public static final double area(ij.process.ImageProcessor image, ij.measure.Calibration calib)
image
- the input binary image containing the region to analyzecalib
- the spatial calibration of the imageperimeter(ImageProcessor, Calibration, int)
,
eulerNumber(ImageProcessor, int)
,
BinaryImages.countForegroundPixels(ImageProcessor)
public static final double[] areas(ij.process.ImageProcessor image, int[] labels, ij.measure.Calibration calib)
image
- the input image containing label of particleslabels
- the array of unique labels in imagecalib
- the spatial calibration of the imageLabelImages.pixelCount(ImageProcessor, int[])
public static final double areaDensity(ij.process.ImageProcessor image)
image
- the input binary imagepublic static final double perimeter(ij.process.ImageProcessor image, ij.measure.Calibration calib, int nDirs)
image
- the input image containing the binary region to analyzecalib
- the spatial calibration of the imagenDirs
- the number of directions to consider, either 2 or 4area(ImageProcessor, Calibration)
,
eulerNumber(ImageProcessor, int)
public static final double[] perimeters(ij.process.ImageProcessor image, int[] labels, ij.measure.Calibration calib, int nDirs)
image
- the input image containing the labels of regions to analyzelabels
- the labels of the regions within the imagecalib
- the spatial calibration of the imagenDirs
- the number of directions to consider, either 2 or 4areas(ImageProcessor, int[], Calibration)
,
eulerNumbers(ImageProcessor, int[], int)
public static final double perimeterDensity(ij.process.ImageProcessor image, ij.measure.Calibration calib, int nDirs)
image
- the input binary imagecalib
- the spatial calibration of the imagenDirs
- the number of directions to consider, either 2 or 4public static final int eulerNumber(ij.process.ImageProcessor image, int conn)
image
- the input 2D binary imageconn
- the connectivity to use (either 4 or 8)public static final int[] eulerNumbers(ij.process.ImageProcessor image, int[] labels, int conn)
image
- the input label image (with labels having integer values)labels
- the set of unique labels in imageconn
- the connectivity to use (either 4 or 8)public static final double eulerNumberDensity(ij.process.ImageProcessor image, ij.measure.Calibration calib, int conn)
image
- the input 2D binary imagecalib
- the spatial calibration of the imageconn
- the connectivity to use (either 4 or 8)Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.