medpy.features.intensity.intensities#

medpy.features.intensity.intensities(image, mask=slice(None, None, None))[source]#

Takes a simple or multi-spectral image and returns its voxel-wise intensities. A multi-spectral image must be supplied as a list or tuple of its spectra.

Optionally a binary mask can be supplied to select the voxels for which the feature should be extracted.

Parameters:
imagearray_like or list/tuple of array_like

A single image or a list/tuple of images (for multi-spectral case).

maskarray_like

A binary mask for the image.

Returns:
intensitiesndarray

The images intensities.