Resize#

class Resize(output_size, interpolation=cv2.INTER_LINEAR, *, order=None)[source]#

Resize the input data.

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

  • interpolation

    interpolation method. All methods are listed below:

    • cv2.INTER_NEAREST – a nearest-neighbor interpolation.

    • cv2.INTER_LINEAR – a bilinear interpolation (used by default).

    • cv2.INTER_AREA – resampling using pixel area relation.

    • cv2.INTER_CUBIC – a bicubic interpolation over 4×4 pixel neighborhood.

    • cv2.INTER_LANCZOS4 – a Lanczos interpolation over 8×8 pixel neighborhood.

  • order – the same with VisionTransform.

apply(input)[source]#

Apply transform on single input data.