squidpy.im.calculate_image_features

squidpy.im.calculate_image_features(adata, img, layer=None, library_id=None, features='summary', features_kwargs=mappingproxy({}), key_added='img_features', copy=False, n_jobs=None, backend='loky', show_progress_bar=True, **kwargs)[source]

Calculate image features for all observations in adata.

Parameters:
Return type:

Optional[DataFrame]

Returns:

: If copy = True, returns a pandas.DataFrame where columns correspond to the calculated features.

Otherwise, modifies the adata object with the following key:

Raises:

ValueError – If a feature is not known.