spatialdata.models.get_channel_names

spatialdata.models.get_channel_names#

spatialdata.models.get_channel_names(data)#

Get channels from data for an image element (both single and multiscale).

Parameters:

data (Any) – data to get channels from

Return type:

list[Any]

Returns:

: List of channels

Notes

For multiscale images, the channels are validated to be consistent across scales.