Reference#

Shape features#

shape(mask[, spacing, extend])

Compute shape descriptors for a binary mask in 2D or 3D.

shape_units(dim[, voxel_unit])

Units of returned shape metrics

First-order features#

firstorder(image, mask[, voxelVolume, ...])

Compute first-order (intensity-based) statistics for a given image and mask, replicating Pyradiomics first-order features.

firstorder_units([intensity_unit, voxel_unit])

Returns units of returned first-order metrics.

Texture features#

texture(image, mask[, binWidth, distances, ...])

Wrapper to compute all texture features (GLCM, GLDM, GLRLM, GLSZM, NGTDM) in a single call.

glcm(image, mask[, binWidth, distances, ...])

Compute 24 Pyradiomics-style GLCM (Gray Level Co-occurrence Matrix) features.

gldm(image, mask[, binWidth, alpha, levels])

Compute 15 Pyradiomics-style GLDM (Gray Level Dependence Matrix) features.

glrlm(image, mask[, binWidth, levels])

Compute 16 Pyradiomics-style GLRLM (Gray Level Run Length Matrix) features.

glszm(image, mask[, binWidth, levels, ...])

Compute 16 Pyradiomics-style GLSZM (Gray Level Size Zone Matrix) features.

ngtdm(image, mask[, binWidth, distance])

Compute 5 Pyradiomics-style NGTDM (Neighborhood Gray Tone Difference Matrix) features.

texture_units([intensity_unit])

Returns units of returned texture metrics with correct prefixes.

glcm_units([intensity_unit])

Returns units for GLCM features.

gldm_units([intensity_unit])

Returns units for GLDM features.

glrlm_units([intensity_unit])

Returns units for GLRLM features.

glszm_units([base_unit])

Returns units for GLSZM features.

ngtdm_units([intensity_unit])

Returns units for NGTDM features.

Digital reference objects#

cuboid([radii_mm, spacing, padding_mm])

Creates a binary mask of a solid cuboid.

ellipsoid([radii_mm, spacing, padding_mm])

Creates a binary mask of a solid ellipsoid.

noisy_ellipsoid([radii_mm, spacing, ...])

Creates a binary mask of an ellipsoid filled with random noise.