dsdl.geometry.insmap
InstanceMap
Bases: Image
A Geometry class for instance segmentation map
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/insmap.py
visualize(image, palette, **kwargs)
Draw the current instance map on an given image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image |
The image where the instance map to be drawn. |
required | |
palette |
The palette which stores the color of different category name. |
required | |
**kwargs |
Other annotations which may be used when drawing the current instance map. |
{}
|
Returns:
Type | Description |
---|---|
The image where the current instance map has been drawn on. |