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.

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

  • library_id (Optional[str]) – Name of the Z-dimension that this function should be applied to.

  • feature_name (str) – Base name of feature in resulting feature values dict.

  • channels (Union[int, Sequence[int], None]) – Channels for this feature is computed. If None, use all channels.

  • quantiles (Sequence[float]) – Quantiles that are computed.

Return type:

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.