Implementations

Image Perturbation

nrtk.impls.perturb_image.generic.cv2.blur

This module provides classes for applying different types of blurring to an image, implementing the PerturbImage interface.

nrtk.impls.perturb_image.generic.PIL.enhance

This module provides classes for enhancing image properties, such as brightness, color, contrast, and sharpness, by implementing the PerturbImage interface.

nrtk.impls.perturb_image.generic.skimage.random_noise

This module provides a set of classes for adding different types of noise to images, implementing the PerturbImage interface.

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.

nrtk.impls.perturb_image.generic.compose_perturber

This module provides the ComposePerturber class, which allows for composing multiple image perturbations by sequentially applying a list of PerturbImage instances.

nrtk.impls.perturb_image.generic.crop_perturber

This module defines the RandomCropPerturber class, which implements a random cropping perturbation on input images.

nrtk.impls.perturb_image.generic.translation_perturber

This module defines the RandomTranslationPerturber class, which implements a random translation perturbation on input images.

nrtk.impls.perturb_image.generic.haze_perturber

This module defines the HazePerturber class, which implements a haze perturbation on input images.

nrtk.impls.perturb_image.pybsm.perturber

This module provides the PybsmPerturber class, which applies image perturbations using the pyBSM library.

nrtk.impls.perturb_image.pybsm.scenario

Wrapper for pybsm.scenario.

nrtk.impls.perturb_image.pybsm.sensor

This module provides a wrapper for the pybsm.sensor module, enabling convenient creation and configuration of sensor instances with customizable parameters.

nrtk.impls.perturb_image.pybsm.circular_aperture_otf_perturber

This module provides the CircularApertureOTFPerturber class, which applies Optical Transfer Function (OTF) perturbations to images based on a circular aperture model.

nrtk.impls.perturb_image.pybsm.defocus_otf_perturber

This module implements the DefocusOTFPerturber class, which simulates optical defocus using the Optical Transfer Function (OTF) in imaging systems.

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.

nrtk.impls.perturb_image.pybsm.jitter_otf_perturber

This module provides the JitterOTFPerturber class, which applies jitter and Optical Transfer Function (OTF) perturbations to images for use in remote sensing and other image processing applications.

nrtk.impls.perturb_image.pybsm.turbulence_aperture_otf_perturber

This module provides the TurbulenceApertureOTFPerturber class, which applies image perturbations based on Optical Transfer Function (OTF) calculations considering turbulence and aperture effects.

Perturbation Factory

nrtk.impls.perturb_image_factory.pybsm

This module provides the _PybsmPerturbImageFactory and CustomPybsmPerturbImageFactory classes, which serve as factories for creating instances of PybsmPerturber.

nrtk.impls.perturb_image_factory.generic.linspace_step

This module defines the LinSpacePerturbImageFactory class, an implementation of the PerturbImageFactory interface that generates PerturbImage instances with a parameter (theta_key) varying over a specified range, using linearly spaced values.

nrtk.impls.perturb_image_factory.generic.one_step

This module provides the OneStepPerturbImageFactory class, a simple implementation of the StepPerturbImageFactory.

nrtk.impls.perturb_image_factory.generic.step

This module defines the StepPerturbImageFactory class, which is an implementation of the PerturbImageFactory interface.

Image Metrics

nrtk.impls.image_metric.niirs_image_metric

This module provides an implementation of the ImageMetric interface, specifically for calculating the NIIRS (National Imagery Interpretability Rating Scale) metric using pyBSM sensor and scenario configurations.

nrtk.impls.image_metric.snr_image_metric

This module provides an implementation of the ImageMetric interface for calculating the Signal-to-Noise Ratio (SNR) of an image.

Scoring

nrtk.impls.score_detections.class_agnostic_pixelwise_iou_scorer

This module provides the ClassAgnosticPixelwiseIoUScorer class, which calculates pixelwise Intersection over Union (IoU) scores in a class-agnostic manner.

nrtk.impls.score_detections.coco_scorer

This module provides the COCOScorer class, an implementation of the ScoreDetections interface that calculates object detection scores conforming to the COCO (Common Objects in Context) dataset format and evaluation metrics.

nrtk.impls.score_detections.nop_scorer

This module provides the NOPScorer class, an implementation of the ScoreDetections interface that serves as a "no operation" (NOP) scorer.

nrtk.impls.score_detections.random_scorer

This module defines the RandomScorer class, which implements the ScoreDetections interface to generate random scores for object detection tasks.

End-to-End Generation and Scoring

nrtk.impls.gen_object_detector_blackbox_response.simple_generic_generator

This module defines the SimpleGenericGenerator class, an implementation of the GenerateObjectDetectorBlackboxResponse interface for generating item-response curves based on a set of images and ground-truth bounding box annotations.

nrtk.impls.gen_object_detector_blackbox_response.simple_pybsm_generator

This module provides an example implementation of the GenerateObjectDetectorBlackboxResponse interface using a SimplePybsmGenerator class.