Class Crop

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

public class Crop extends Object implements Transform
A Transform that crops the image to a given location and size.
  • Constructor Details

    • Crop

      public Crop(int x, int y, int width, int height)
      Creates a CenterCrop Transform.
      Parameters:
      x - the x coordinate of the top-left corner of the crop
      y - the y coordinate of the top-left corner of the crop
      width - the width of the cropped image
      height - the height of the cropped image
  • Method Details