from_label_map#
- static rlemasklib.RLEMask.from_label_map(label_map)[source]#
Convert a label map to a dict of RLEMasks.
This is the inverse of
merge_to_label_map().Label 0 is treated as background and not included in the output. Labels 1-255 become individual RLEMasks.