FeatureResult

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 FeatureResult(values: ~typing.Mapping[str, float], label: int, backend: str, geometry_report: ~habit.contracts.image.GeometryReport, resolved_params: ~typing.Mapping[str, ~typing.Any], provenance: ~typing.Mapping[str, ~typing.Any] = <factory>, warnings: ~typing.Tuple[str, ...] = (), failed_features: ~typing.Mapping[str, str] = <factory>)[source]

Bases: object

Structured output from radiomics extraction for one image/mask pair.

__post_init__() → None[source]

Freeze mappings and ensure callers receive numeric feature values.

__init__(values: ~typing.Mapping[str, float], label: int, backend: str, geometry_report: ~habit.contracts.image.GeometryReport, resolved_params: ~typing.Mapping[str, ~typing.Any], provenance: ~typing.Mapping[str, ~typing.Any] = <factory>, warnings: ~typing.Tuple[str, ...] = (), failed_features: ~typing.Mapping[str, str] = <factory>) → None