Implementations

Image Perturbation

nrtk.impls.perturb_image.generic.albumentations_perturber

Defines AlbumentationsPerturber to apply Albumentations BasicTransforms to input images.

nrtk.impls.perturb_image.generic.cv2.blur

Implements PerturbImage blurs: average, Gaussian, and median, with customizable kernel sizes.

nrtk.impls.perturb_image.generic.PIL.enhance

Implements PerturbImage enhancers using PIL to adjust brightness, color, contrast, and sharpness of images.

nrtk.impls.perturb_image.generic.skimage.random_noise

Defines noise perturbers implementing PerturbImage, including salt, pepper, Gaussian, and speckle noise types.

nrtk.impls.perturb_image.generic.nop_perturber

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

nrtk.impls.perturb_image.generic.compose_perturber

Defines ComposePerturber to apply multiple PerturbImage instances sequentially for combined image perturbations.

nrtk.impls.perturb_image.generic.random_crop_perturber

Defines RandomCropPerturber for random image crops with bounding box adjustment for labeled datasets.

nrtk.impls.perturb_image.generic.random_rotation_perturber

Defines RandomRotationPerturber to apply Albumentations' Rotate transformation to input images.

nrtk.impls.perturb_image.generic.random_translation_perturber

Defines RandomTranslationPerturber for random image shifts with bounding box adjustment for labeled datasets.

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.generic.water_droplet_perturber

Defines WaterDropletPerturber for physics-based, photorealistic water droplet effects on images.

nrtk.impls.perturb_image.generic.radial_distortion_perturber

Defines the RadialDistortionPerturber which applies radial distortion to input images.

nrtk.impls.perturb_image.pybsm.pybsm_perturber

Implements PybsmPerturber for image perturbations using pyBSM with sensor and scenario configs.

nrtk.impls.perturb_image.pybsm.scenario

Wrapper for pybsm.scenario.

nrtk.impls.perturb_image.pybsm.sensor

Defines a wrapper for pybsm.sensor with PybsmSensor, extending Sensor for customizable sensors in SMQTK.

nrtk.impls.perturb_image.pybsm.circular_aperture_otf_perturber

Implements CircularApertureOTFPerturber for circular aperture OTF perturbations with sensor and scenario configs.

nrtk.impls.perturb_image.pybsm.defocus_otf_perturber

Implements DefocusOTFPerturber for optical defocus simulation via OTF using pybsm and OpenCV.

nrtk.impls.perturb_image.pybsm.detector_otf_perturber

Implements DetectorOTFPerturber which applies detector perturbations using sensor and scenario settings.

nrtk.impls.perturb_image.pybsm.jitter_otf_perturber

Implements JitterOTFPerturber which applies jitter perturbations using pyBSM with sensor and scenario configs.

nrtk.impls.perturb_image.pybsm.turbulence_aperture_otf_perturber

Implements TurbulenceApertureOTFPerturber for turbulence aperture-based OTF image perturbations using pyBSM & OpenCV.

Perturbation Factory

nrtk.impls.perturb_image_factory.pybsm

Defines factories to create PybsmPerturber instances for flexible image perturbations.

nrtk.impls.perturb_image_factory.generic.linspace_step

Defines LinSpacePerturbImageFactory to create PerturbImage instances with parameters linearly spaced over a range.

nrtk.impls.perturb_image_factory.generic.one_step

Defines OneStepPerturbImageFactory, creating a single PerturbImage with fixed parameters for one-step perturbations.

nrtk.impls.perturb_image_factory.generic.step

Defines StepPerturbImageFactory, which creates PerturbImage instances varying a parameter over a range in steps.

Image Metrics

nrtk.impls.image_metric.niirs_image_metric

Defines an ImageMetric implementation to calculate NIIRS using pyBSM sensor and scenario configs.

nrtk.impls.image_metric.snr_image_metric

Defines SNRImageMetric, an ImageMetric implementation that computes signal-to-noise ratio for a single image.

Scoring

nrtk.impls.score_detections.class_agnostic_pixelwise_iou_scorer

Defines ClassAgnosticPixelwiseIoUScorer for class-agnostic pixelwise IoU scoring of object detections.

nrtk.impls.score_detections.coco_scorer

Defines COCOScorer, a ScoreDetections implementation that scores detections using COCO dataset metrics and formats.

nrtk.impls.score_detections.nop_scorer

Defines NOPScorer, a ScoreDetections implementation that scores all detections as zero for testing or baselines.

nrtk.impls.score_detections.random_scorer

Defines RandomScorer, a ScoreDetections tool that returns seed-based random scores for reproducible testing.

End-to-End Generation and Scoring

nrtk.impls.gen_object_detector_blackbox_response.simple_generic_generator

Defines SimpleGenericGenerator to generate item-response curves from images and ground-truth boxes.

nrtk.impls.gen_object_detector_blackbox_response.simple_pybsm_generator

pyBSM implementation of GenerateObjectDetectorBlackboxResponse.