Upsample
Description
Your algorithms or other operations may rely on larger input than you have. You may use this operation to solve this, or for any other purposes.
Params
tSrc | Tensor | The source image to be upsampled. |
coefficient | number | Upsampling coefficient. |
type? | string | Upsampling support two possible variants of interpolation 'nearest', 'bicubic'. |
Example
// this line enlarge an input image in 3x
gm.upsample(inputImage, 3);