SharpnessPerturber#
- class nrtk.impls.perturb_image.photometric.enhance.SharpnessPerturber(factor: float = 1.0)#
Adjusts image stimulus sharpness.
Methods
from_configInstantiate a new instance of this class given the configuration JSON-compliant dictionary encapsulating initialization arguments.
get_configReturns the current configuration of the EnhancePerturberMixin instance.
get_default_configGenerate and return a default configuration dictionary for this class.
get_implsDiscover plugins, skipping any entrypoints that fail to load.
get_type_stringReturns the fully qualified type string of the PerturbImage class or its subclass.
is_usableCheck whether this class is available for use.
Return image stimulus with adjusted sharpness.
- __init__(factor: float = 1.0) → None#
Override parent init since factor is capped at 2.0.
- 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 sharpness.