Rotates image counter-clockwise.
Public Constructors
| * | |
| * | Rot90Op
(int k)
Creates a Rot90 Op which will rotate image by 90 degree for
k
times counter-clockwise. |
Public Methods
| TensorImage | |
| int | getOutputImageHeight
(int inputImageHeight, int inputImageWidth)
Computes the height of the expected output image when input image size is given.
|
| int | getOutputImageWidth
(int inputImageHeight, int inputImageWidth)
Computes the width of the expected output image when input image size is given.
|
| 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.
|
Inherited Methods
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
Public Methods
public TensorImage apply ( 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.
Parameters
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.

