apply method

  1. @override
TensorImage apply(
  1. TensorImage image
)
override

Applies the defined rotation on image and returns the result.

Note: the content of input image will change, and image is the same instance with the output.

Implementation

@override
TensorImage apply(TensorImage image) {
  Image rotated = copyRotate(image.image, 90 * _numRotation);
  image.loadImage(rotated);
  return image;
}