Skip to main content

MaskLabelStatistics

Other

Statistics for a single label/region in a mask.

Import

import ScriptingApi as api

# Access the class
# MaskLabelStatistics is available via api.MaskLabelStatistics

Properties

label

Label value (region identifier).

Type: int


voxel_count

Number of voxels in the region.

Type: int


volume

Volume in cubic millimeters.

Type: float


volume_fraction

Volume fraction as percentage.

Type: float


perimeter

Surface area (perimeter) in square millimeters.

Type: float


centroid

Centroid position [x, y, z] in physical coordinates.

Type: list


feret_diameter

Feret diameter (diameter of bounding sphere).

Type: float


equivalent_diameter

Equivalent diameter (diameter of sphere with same volume).

Type: float


equivalent_ellipsoid_diameter

Equivalent ellipsoid diameter.

Type: float


circumsphere_diameter

Circumsphere diameter.

Type: float


gap

Gap between this region and other regions.

Type: float


equivalent_spherical_perimeter

Equivalent spherical perimeter.

Type: float


number_of_pixels_on_border

Number of pixels on image border.

Type: int


perimeter_on_border

Perimeter on image border.

Type: float


perimeter_on_border_ratio

Perimeter on border ratio.

Type: float


roundness

Roundness (sphericity) measure (1.0 = perfect sphere).

Type: float


compactness

Compactness measure.

Type: float


elongation

Elongation measure.

Type: float


flatness

Flatness measure (0.0 = flat structure).

Type: float


shape_factor

Shape factor (elongation / flatness).

Type: float


oriented_bounding_box_origin

Oriented bounding box origin [x, y, z].

Type: list


oriented_bounding_box_size

Oriented bounding box size [x, y, z].

Type: list


oriented_bounding_box_orientation

Oriented bounding box orientation [roll, pitch, yaw] in degrees.

Type: list


principal_moments

Principal moments of inertia [x, y, z].

Type: list


principal_axis

Principal axes of rotation [x, y, z].

Type: list


min_intensity

Minimum intensity value within the region.

Type: float


max_intensity

Maximum intensity value within the region.

Type: float


mean_intensity

Mean intensity value within the region.

Type: float


median_intensity

Median intensity value within the region.

Type: float


standard_deviation

Standard deviation of intensity within the region.

Type: float


See Also