Rotates image counter-clockwise.
|
Rot90Op()
Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise.
|
|
|
Rot90Op(int k)
Creates a Rot90 Op which will rotate image by 90 degree for
k times counter-clockwise. |
| 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.
|
Creates a Rot90 Op which will rotate image by 90 degree counter-clockwise.
Creates a Rot90 Op which will rotate image by 90 degree for k times counter-clockwise.
| 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. |
|---|
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.
| image | input image. |
|---|
Computes the height of the expected output image when input image size is given.
| inputImageHeight | |
|---|---|
| inputImageWidth |
Computes the width of the expected output image when input image size is given.
| inputImageHeight | |
|---|---|
| inputImageWidth |
Transforms a point from coordinates system of the result image back to the one of the input image.
| point | the point from the result coordinates system. |
|---|---|
| inputImageHeight | the height of input image. |
| inputImageWidth | the width of input image. |