ColorPerturber#

class nrtk.impls.perturb_image.photometric.enhance.ColorPerturber(factor: float = 1.0)#

Adjusts image stimulus color balance.

Methods

from_config

Instantiate a new instance of this class given the configuration JSON-compliant dictionary encapsulating initialization arguments.

get_config

Returns the current configuration of the EnhancePerturberMixin instance.

get_default_config

Generate and return a default configuration dictionary for this class.

get_impls

Discover plugins, skipping any entrypoints that fail to load.

get_type_string

Returns the fully qualified type string of the PerturbImage class or its subclass.

is_usable

Check whether this class is available for use.

perturb

Return image stimulus with adjusted color balance.

perturb(*, image: ndarray[Any, dtype[Any]], boxes: Iterable[tuple[AxisAlignedBoundingBox, dict[Hashable, float]]] | None = None, **kwargs: Any) tuple[ndarray[Any, dtype[Any]], Iterable[tuple[AxisAlignedBoundingBox, dict[Hashable, float]]] | None]#

Return image stimulus with adjusted color balance.