MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / polygon_to_bitmap

Function polygon_to_bitmap

mmdet/core/mask/structures.py:1058–1072  ·  view source on GitHub ↗

Convert masks from the form of polygons to bitmaps. Args: polygons (list[ndarray]): masks in polygon representation height (int): mask height width (int): mask width Return: ndarray: the converted masks in bitmap representation

(polygons, height, width)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

_get_wandb_masksMethod · 0.90
to_ndarrayMethod · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected