ImageContainer.features_summary

ImageContainer.features_summary#

ImageContainer.features_summary(layer, library_id=None, feature_name='summary', channels=None, quantiles=(0.9, 0.5, 0.1))#

Calculate summary statistics of image channels.

Parameters:
layer str

Image layer in img that should be processed. If None and only 1 layer is present, it will be selected.

library_id str | None (default: None)

Name of the Z-dimension that this function should be applied to.

feature_name str (default: 'summary')

Base name of feature in resulting feature values dict.

channels int | Sequence[int] | None (default: None)

Channels for this feature is computed. If None, use all channels.

quantiles Sequence[float] (default: (0.9, 0.5, 0.1))

Quantiles that are computed.

Returns:

dict[str, Any] – Returns features with the following keys for each channel c in channels:

  • '{feature_name}_ch-{c}_quantile-{q}' - the quantile features for each quantile q in quantiles.

  • '{feature_name}_ch-{c}_mean' - the mean.

  • '{feature_name}_ch-{c}_std' - the standard deviation.