Feature
IFeature
Bases: IRegion, ABC
Source code in src/officialeye/_api/template/feature.py
apply_mutators_to_image(img)
Takes an image and applies the mutators defined in the corresponding feature class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
img | ndarray | The image that should be transformed. | required |
Returns:
| Type | Description |
|---|---|
ndarray | The resulting image. |
Source code in src/officialeye/_api/template/feature.py
get_mutators() abstractmethod
Returns:
| Type | Description |
|---|---|
Iterable[IMutator] | A list of mutators from the feature class of the feature, in the order in which they are to be applied. |