nrtk.impls.perturb_image.generic.random_scale_perturber

Defines RandomScalePerturber to apply Albumentations’ Scale transformation to input images.

Classes:

RandomScalePerturber: A perturbation class for applying the Scale transformation from Albumentations.

Dependencies:
  • albumentations: For the underlying perturbations

  • numpy: For numerical operations and random number generation.

  • smqtk_image_io.AxisAlignedBoundingBox: For handling and adjusting bounding boxes.

  • nrtk.interfaces.perturb_image.PerturbImage: Base class for perturbation algorithms.

  • nrtk.impls.perturb_image.generic.albumentations_perturber: Base implementation for Albumentations perturbers.

Classes

RandomScalePerturber

RandomScalePerturber applies a Scale transformation from Albumentations.