Class BoundingBoxAugment

Inheritance Relationships

Base Type

Class Documentation

class BoundingBoxAugment : public mindspore::dataset::TensorTransform

Apply a given image transform on a random selection of bounding box regions of a given image.

Public Functions

explicit BoundingBoxAugment(TensorTransform *transform, float ratio = 0.3)

Constructor.

Parameters
  • transform[in] Raw pointer to the TensorTransform operation.

  • ratio[in] Ratio of bounding boxes to apply augmentation on. Range: 0, 1.

explicit BoundingBoxAugment(const std::shared_ptr<TensorTransform> &transform, float ratio = 0.3)

Constructor.

Parameters
  • transform[in] Smart pointer to the TensorTransform operation.

  • ratio[in] Ratio of bounding boxes where augmentation is applied to. Range: 0, 1.

explicit BoundingBoxAugment(const std::reference_wrapper<TensorTransform> transform, float ratio = 0.3)

Constructor.

Parameters
  • transform[in] Object pointer to the TensorTransform operation.

  • ratio[in] Ratio of bounding boxes where augmentation is applied to. Range: 0, 1.

~BoundingBoxAugment() = default

Destructor.