nrtk.impls.perturb_image.generic.translation_perturber

This module defines the RandomTranslationPerturber class, which implements a random translation perturbation on input images. The class supports adjusting bounding boxes to match the translated region, making it suitable for tasks involving labeled datasets.

Classes:

RandomTranslationPerturber: A perturbation class for applying random translation on images and the corresponding bounding boxes.

Dependencies:
  • 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.

Classes

RandomTranslationPerturber

RandomTranslationPerturber randomly translates an image and adjusts bounding boxes accordingly.