Overlay
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class Overlay(modality: str, at: str = 'habitat_map')[source]
Bases:
objectHabitat labels over one source modality.
- draw(ctx: SubjectContext) 'Figure' | None[source]
Draw the overlay, or raise if the modality is missing.
- Parameters:
ctx – Completed subject’s map and images.
- Returns:
A matplotlib Figure.
- Raises:
HABITAPIError – If
ctx.subjecthas no image formodality.