public class **Rot90Op** Rotates image counter-clockwise.

### Public Constructors

|---|---|
|   | [Rot90Op](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#Rot90Op())() Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise. |
|   | [Rot90Op](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#Rot90Op(int))(int k) Creates a Rot90 Op which will rotate image by 90 degree for `k` times counter-clockwise. |

### Public Methods

|---|---|
| [TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#apply(org.tensorflow.lite.support.image.TensorImage))([TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) image) Applies the defined rotation on given image and returns the result. |
| int | [getOutputImageHeight](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#getOutputImageHeight(int,%20int))(int inputImageHeight, int inputImageWidth) Computes the height of the expected output image when input image size is given. |
| int | [getOutputImageWidth](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#getOutputImageWidth(int,%20int))(int inputImageHeight, int inputImageWidth) Computes the width of the expected output image when input image size is given. |
| PointF | [inverseTransform](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ops/Rot90Op#inverseTransform(PointF,%20int,%20int))(PointF point, int inputImageHeight, int inputImageWidth) Transforms a point from coordinates system of the result image back to the one of the input image. |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface [org.tensorflow.lite.support.image.ImageOperator](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ImageOperator)

|---|---|
| abstract [TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ImageOperator#apply(org.tensorflow.lite.support.image.TensorImage))([TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) image) |
| abstract int | [getOutputImageHeight](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ImageOperator#getOutputImageHeight(int,%20int))(int inputImageHeight, int inputImageWidth) Computes the height of the expected output image when input image size is given. |
| abstract int | [getOutputImageWidth](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ImageOperator#getOutputImageWidth(int,%20int))(int inputImageHeight, int inputImageWidth) Computes the width of the expected output image when input image size is given. |
| abstract PointF | [inverseTransform](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/ImageOperator#inverseTransform(PointF,%20int,%20int))(PointF point, int inputImageHeight, int inputImageWidth) Transforms a point from coordinates system of the result image back to the one of the input image. |

From interface [org.tensorflow.lite.support.common.Operator](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator)

|---|---|
| abstract [TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) | [apply](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/common/Operator#apply(T))([TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) x) Applies an operation on a T object, returning a T object. |

## Public Constructors

#### public
**Rot90Op**
()

Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise.

#### public
**Rot90Op**
(int k)

Creates a Rot90 Op which will rotate image by 90 degree for `k` times counter-clockwise.

##### Parameters

| k | The number of times the image is rotated by 90 degrees. If it's positive, the image will be rotated counter-clockwise. If it's negative, the op will rotate image clockwise. |
|---|---|

## Public Methods

#### public [TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage)
**apply**
([TensorImage](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/support/image/TensorImage) image)

Applies the defined rotation on given image and returns the result.

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

<br />

##### Parameters

| image | input image. |
|---|---|

##### Returns

- output image.

#### public int
**getOutputImageHeight**
(int inputImageHeight, int inputImageWidth)

Computes the height of the expected output image when input image size is given.

##### Parameters

| inputImageHeight |   |
| inputImageWidth |   |
|---|---|

#### public int
**getOutputImageWidth**
(int inputImageHeight, int inputImageWidth)

Computes the width of the expected output image when input image size is given.

##### Parameters

| inputImageHeight |   |
| inputImageWidth |   |
|---|---|

#### public PointF
**inverseTransform**
(PointF point, int inputImageHeight, int inputImageWidth)

Transforms a point from coordinates system of the result image back to the one of the input
image.

##### Parameters

| point | the point from the result coordinates system. |
| inputImageHeight | the height of input image. |
| inputImageWidth | the width of input image. |
|---|---|

##### Returns

- the point with the coordinates from the coordinates system of the input image.