MCPcopy Create free account
hub / github.com/HiLab-git/SSL4MIS / encode_segmap

Function encode_segmap

code/dataloaders/utils.py:55–69  ·  view source on GitHub ↗

Encode segmentation label images as pascal classes Args: mask (np.ndarray): raw segmentation label image of dimension (M, N, 3), in which the Pascal classes are encoded as colours. Returns: (np.ndarray): class map with dimensions (M,N), where the value at a

(mask)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

get_pascal_labelsFunction · 0.85

Tested by

no test coverage detected