Resize
class Resize(outputWidth: Int, outputHeight: Int, interpolation: InterpolationType, renderingSpeed: RenderingSpeed, enableAntialiasing: Boolean) : ImagePreprocessorBase
Content copied to clipboard
This image preprocessor defines the Resize operation.
Resize operations creates new image with the following sizes:
resizedWidth = outputWidth
resizedHeight = outputHeight
The final image quality depends on the following tunable parameters: interpolation, renderingSpeed, enableAntialiasing.
Constructors
Resize
Link copied to clipboard
fun Resize(outputWidth: Int = 100, outputHeight: Int = 100, interpolation: InterpolationType = InterpolationType.BILINEAR, renderingSpeed: RenderingSpeed = RenderingSpeed.MEDIUM, enableAntialiasing: Boolean = true)
Content copied to clipboard
Functions
getOutputShape
Link copied to clipboard
Computes output image shape for the provided inputShape. Note that some input dimensions could equal to null
, which means that they are undefined. This is useful for the operations with fixed output size not dependent on the input size.
Properties
enableAntialiasing
Link copied to clipboard
interpolation
Link copied to clipboard
outputHeight
Link copied to clipboard
outputWidth
Link copied to clipboard
renderingSpeed
Link copied to clipboard