nrtk.impls.perturb_image.pybsm.detector_otf_perturber

This module defines the DetectorOTFPerturber class, which applies image perturbations based on the Optical Transfer Function (OTF) of a detector, using configurations for sensor and scenario. This class can simulate the effects of detector and environmental parameters on images.

Classes:

DetectorOTFPerturber: Applies OTF-based perturbations to images using specified sensor and scenario configurations.

Dependencies:
  • OpenCV for image processing.

  • pyBSM for radiance and OTF-related functionalities.

  • nrtk.interfaces.perturb_image.PerturbImage as the base interface for image perturbation.

Example usage:

sensor = PybsmSensor(…) scenario = PybsmScenario(…) perturber = DetectorOTFPerturber(sensor=sensor, scenario=scenario) perturbed_image, boxes = perturber.perturb(image, boxes)

Notes:
  • The boxes returned from perturb are identical to the boxes passed in.

Classes

DetectorOTFPerturber

Implements OTF-based image perturbation using detector specifications and atmospheric conditions.