The adapter that makes a TensorOperator able to run with TensorImage.
|
TensorOperatorWrapper(TensorOperator op)
Wraps a
TensorOperator object as an ImageOperator, so that the TensorOperator could handle TensorImage objects by handling its underlying TensorBuffer. |
| TensorImage |
apply(TensorImage image)
|
| 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.
|
Wraps a TensorOperator object as an ImageOperator, so that the TensorOperator could handle TensorImage objects by handling its underlying TensorBuffer.
Requirement: The op should not change coordinate system when applied on an image.
| op | The created operator. |
|---|
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. |