You need to enable JavaScript to run this app.Resize - GammaCV
GammaCV Logo
DocsExamplesGitHub

Resize

Description

The operation provides an ability to resize input image. GammaCV supports a few different ways to reduce the dimension of an image, for example, we support "Nearest Neighbor Scaling" and an approach known as "Bicubic Scaling". Source of the algorithms source https://www.researchgate.net/publication/272092207_A_Novel_Visual_Cryptographic_Method_for_Color_Images

Params
tSrcTensorThe source image to be resized.
wnumberWidth of output image.
hnumberHeight of output image.
type?stringResize support two possible variants of processing
pixels to be resized 'nearest', 'bicubic'.
Example
// this line reduces an input image to 128x128
 gm.resize(inputImage, 128, 128, 'bicubic');