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 None when unset.

Parameters:

spec – Spec(name="connected_components", params=...) or None.

Returns:

The operator, or None when cleanup is not configured.

Raises:

HABITAPIError – If spec.name is not connected_components.