scale size, apply to short edge
make the scaled size multiple of some value
max size after scale
if resizeMode = -1, random select a mode from (Imgproc.INTER_LINEAR, Imgproc.INTER_CUBIC, Imgproc.INTER_AREA, Imgproc.INTER_NEAREST, Imgproc.INTER_LANCZOS4)
if true, scale factor fx and fy is used, fx = fy = 0
control the minimum scale up for image
Apply this transformer to rdd
catch the exception of the transformer to avoid crashing.
catch the exception of the transformer to avoid crashing.
set the output key to store current transformed result if the key is not set, or same as default, then the transformed result will be overwritted by the following transformer
set the output key to store current transformed result if the key is not set, or same as default, then the transformed result will be overwritted by the following transformer
output key
transform feature
transform mat
transform mat
Resize the image, keep the aspect ratio. scale according to the short edge