tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/support/image/ImageOperator.html
public interface ImageOperator
| Known Indirect Subclasses
ResizeOp, ResizeWithCropOrPadOp, Rot90Op, TensorOperatorWrapper, TransformToGrayscaleOp
| ResizeOp | As a computation unit for processing images, it can resize an image to user-specified size. | | ResizeWithCropOrPadOp | As a computation unit for processing images, it could resize image to predefined size. | | Rot90Op | Rotates image counter-clockwise. | | TensorOperatorWrapper | The adapter that makes a TensorOperator able to run with TensorImage. | | TransformToGrayscaleOp | Transforms an image to GrayScale as an image processing unit. |
|
Operates a TensorImage object. Used in ImageProcessor.
| abstract TensorImage | apply(TensorImage image) | | abstract int | getOutputImageHeight(int inputImageHeight, int inputImageWidth) Computes the height of the expected output image when input image size is given.
| | abstract int | getOutputImageWidth(int inputImageHeight, int inputImageWidth) Computes the width of the expected output image when input image size is given.
| | abstract 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.
|
From interface org.tensorflow.lite.support.common.Operator
| abstract TensorImage | apply(TensorImage x) Applies an operation on a T object, returning a T object.
|
| image | |
Operator.apply(java.lang.Object)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. |