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

Downsample

Description

Performance is always important, but some algorithms are very expensive to apply to large picture sizes. To accommodate for this in Computer Vision we often need reduce an original image to a smaller size before we apply a given algorithm.

Params
tSrcTensorThe source image to be downsampled.
coefficientnumberDownsampling coefficient.
type?stringDownsampling support two possible variants of processing
pixels to be downsampled 'bicubic', 'nearest'.
Example
// this line reduces an input image in 3x
 gm.downsample(inputImage, 3, 'nearest');