ImageOperator

public interface ImageOperator
Known Indirect Subclasses

Operates a TensorImage object. Used in ImageProcessor.

Public Methods

abstract TensorImage
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.

Inherited Methods

Public Methods

public abstract TensorImage apply (TensorImage image)

Parameters
image

public abstract int getOutputImageHeight (int inputImageHeight, int inputImageWidth)

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

Parameters
inputImageHeight
inputImageWidth

public abstract int getOutputImageWidth (int inputImageHeight, int inputImageWidth)

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

Parameters
inputImageHeight
inputImageWidth

public 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.

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.