Class ResizeShort

java.lang.Object
ai.djl.modality.cv.transform.ResizeShort
All Implemented Interfaces:
Transform

public class ResizeShort extends Object implements Transform
A Transform that resizes the image and keep aspect ratio.
  • Constructor Details

    • ResizeShort

      public ResizeShort(int shortEdge)
      Creates a ResizeShort Transform that resizes to the given size.
      Parameters:
      shortEdge - the length of the short edge
    • ResizeShort

      public ResizeShort(int shortEdge, int longEdge, Image.Interpolation interpolation)
      Creates a ResizeShort Transform that resizes to the given size and given interpolation.
      Parameters:
      shortEdge - the length of the short edge
      longEdge - the length of the long edge
      interpolation - the desired interpolation
  • Method Details