CenterCrop

class CenterCrop(output_size, *, order=None)[source]

Crops the given the input data at the center.

Parameters
  • output_size – target size of output image, with (height, width) shape.

  • order – the same with VisionTransform.

apply(input)[source]

Apply transform on single input data.