dsdl.geometry.segmap
SegmentationMap
Bases: Image
A Geometry class for semantic segmentation map.
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/segmap.py
class_domain
property
Returns:
Type | Description |
---|---|
The current semantic segmentation map's class domain. |
__init__(value, dom, file_reader)
A Geometry class which abstracts a semantic segmentation map object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
The relative path of the current semantic segmentation map image. |
required | |
file_reader |
The file reader object of the current semantic segmentation map image. |
required | |
dom |
The current semantic segmentation map's class domain. |
required |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/segmap.py
visualize(image, palette, **kwargs)
Draw the current semantic segmentation map on an given image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image |
The image where the semantic segmentation 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 semantic segmentation map. |
{}
|
Returns:
Type | Description |
---|---|
The image where the current semantic segmentation map has been drawn on. |