spatialdata.get_pyramid_levels#
- spatialdata.get_pyramid_levels(image, attr=None, n=None)#
Access the data/attribute of the pyramid levels of a multiscale spatial image.
- Parameters:
image (
DataTree
) – The multiscale spatial image.attr (
Optional
[str
] (default:None
)) – IfNone
, return the data of the pyramid level as aDataArray
, if not None, return the specified attribute within theDataArray
data.n (
Optional
[int
] (default:None
)) – If not None, return only then
pyramid level.
- Return type:
Union
[list
[Any
],Any
]- Returns:
: The pyramid levels data (or an attribute of it) as a list or a generator.