Implementations#
Image Perturbation#
Photometric Perturbers#
Photometric perturbers modify the visual appearance of images by adjusting color, brightness, contrast, sharpness, blur, and noise properties.
Blur#
Blur perturbers apply various blurring effects using cv2.
Applies average blurring to the image stimulus. |
|
Applies Gaussian blurring to the image stimulus. |
|
Applies median blurring to the image stimulus. |
Enhance#
Enhancement perturbers adjust image properties using PIL.
Adjusts image stimulus brightness. |
|
Adjusts image stimulus color balance. |
|
Adjusts image stimulus contrast. |
|
Adjusts image stimulus sharpness. |
Noise#
Noise perturbers add random noise patterns using skimage.
Adds Gaussian-distributed additive noise to image stimulus. |
|
Adds pepper noise to image stimulus. |
|
Adds salt & pepper noise to image stimulus. |
|
Adds salt noise to image stimulus. |
|
Adds multiplicative noise to image stimulus. |
Geometric Perturbers#
Geometric perturbers alter the spatial positioning and orientation of images through transformations such as rotation, scaling, cropping, and translation.
RandomCropPerturber randomly crops an image and adjusts bounding boxes accordingly. |
|
RandomRotationPerturber applies a Rotation transformation from Albumentations. |
|
RandomScalePerturber applies a Scale transformation from Albumentations. |
|
RandomTranslationPerturber randomly translates an image and adjusts bounding boxes accordingly. |
Environment Perturbers#
Environment perturbers simulate atmospheric and weather-related effects that occur in real-world imaging conditions.
HazePerturber applies haze using Shree Nayar weathering. |
|
Implements the physics-based, photorealistic water/rain droplet model. |
Optical Perturbers#
Optical perturbers simulate physics-based sensor and optical effects.
Applies OTF-based image perturbation using a circular aperture model. |
|
Implements image perturbation using defocus and Optical Transfer Function (OTF). |
|
Implements OTF-based image perturbation using detector specifications and atmospheric conditions. |
|
Implements image perturbation using jitter and Optical Transfer Function (OTF). |
|
Implements image perturbation using pyBSM sensor and scenario configurations. |
|
RadialDistortionPerturber applies a radial distortion to an image. |
|
Implements OTF-based image perturbation with turbulence and aperture effects. |
Generative Perturbers#
Generative perturbers use AI models to transform images through learned representations.
Diffusion-based implementation of the |
Utility Perturbers#
Utility perturbers enable composition of multiple perturbations or provide integration with third-party augmentation libraries.
AlbumentationsPerturber applies a BasicTransform from Albumentations. |
|
Composes multiple image perturbations by applying a list of perturbers sequentially to an input image. |
Utility Components#
Utility functions that support perturbation operations.
Load default sensor and scenario configurations for a given configuration type. |
Perturbation Factory#
Perturbation factories generate collections of perturbers with varying parameter values, enabling systematic exploration of perturbation parameter spaces.
Simple PerturbImageFactory implementation to step through the given range of values. |
|
Base factory for creating PerturbImage instances with customizable parameters. |
|
Simple PerturbImageFactory implementation to return a factory with one perturber. |
|
Simple PerturbImageFactory implementation to step through the given range of values. |