Class CenterFit

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

public class CenterFit extends Object implements Transform
A Transform that fit the size of an image.
  • Constructor Details

    • CenterFit

      public CenterFit(int width, int height)
      Creates a CenterFit Transform that fit to the given width and height with given interpolation.
      Parameters:
      width - the desired width
      height - the desired height
  • Method Details