Class ResizePreserveAR

Inheritance Relationships

Base Type

Class Documentation

class ResizePreserveAR : public mindspore::dataset::TensorTransform

Keep the original picture ratio and fills the rest.

Public Functions

ResizePreserveAR(int32_t height, int32_t width, int32_t img_orientation = 0)

Constructor.

Parameters
  • height[in] The height of image output value after resizing.

  • width[in] The width of image output value after resizing.

  • img_orientation[in] Angle method of image rotation.

~ResizePreserveAR() = default

Destructor.