build_connected_component_postprocess
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- build_connected_component_postprocess(spec: Spec | Mapping[str, Any] | None) ConnectedComponentPostprocess | None[source]
Build a postprocess operator from a Spec, or
Nonewhen unset.- Parameters:
spec –
Spec(name="connected_components", params=...)orNone.- Returns:
The operator, or
Nonewhen cleanup is not configured.- Raises:
HABITAPIError – If
spec.nameis notconnected_components.