Interface Transform

All Known Implementing Classes:
CenterCrop, Crop, Normalize, OneHot, RandomBrightness, RandomColorJitter, RandomFlipLeftRight, RandomFlipTopBottom, RandomHue, RandomResizedCrop, Resize, ToTensor

public interface Transform
An interface to apply various transforms to the input.

A transform can be any function that modifies the input. Some examples of transform are crop and resize.

  • Method Summary

    Modifier and Type
    Method
    Description
    Applies the Transform to the given NDArray.
  • Method Details

    • transform

      NDArray transform(NDArray array)
      Applies the Transform to the given NDArray.
      Parameters:
      array - the NDArray on which the Transform is applied
      Returns:
      the output of the Transform