nrtk.impls.perturb_image.generic.nop_perturber

This module provides the NOPPerturber class, an implementation of the PerturbImage interface that performs no alteration on the input image. It serves as a pass-through or “no operation” (NOP) perturber, returning an exact copy of the input image. This class is useful in testing or as a baseline when no perturbation is desired.

Classes:

NOPPerturber: An implementation of the PerturbImage interface that returns an unmodified copy of the input image.

Dependencies:
  • numpy for handling image data.

  • nrtk.interfaces for the PerturbImage interface.

Usage:

Instantiate NOPPerturber and call perturb with an input image to obtain a copy of the original image.

Example:

nop_perturber = NOPPerturber() output_image = nop_perturber.perturb(input_image)

Classes

NOPPerturber

Example implementation of the PerturbImage interface.