mosaic.formats.NotASegmentationError#

exception NotASegmentationError[source]#

Bases: ValueError

Raised when a volume cannot be interpreted as a segmentation.

The sampled unique-value count exceeded max_cluster, indicating the file is most likely a density map rather than a label map. The caller should offer to render it as a volume instead.