nrtk.impls.perturb_image.generic.nop_perturber

Defines NOPPerturber, a PerturbImage implementation that returns the input image unchanged for testing or baselines.

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.