The C++ interface for scale. More...

array scale (const array &image, const float scale_x, const float scale_y, const unsigned oh=0, const unsigned ow=0)
 

Detailed Description

The C++ interface for scale.

Scale the input image by scale_x units along x-dimension and scale_y units along y-dimension.

Function Documentation

array af::scale ( const array &  image,
const float  scale_x,
const float  scale_y,
const unsigned  oh = 0,
const unsigned  ow = 0 
)
Parameters
[in]imageinput image
[in]scale_xmagnitude of scale along x (1st or height) dimension
[in]scale_ymagnitude of scale along y (2nd or width) dimension
[in]ohspecify output height of image, if (0, default) then output height is computationally determined using scale_x
[in]owspecify output width of image, if (0, default) then output width is computationally determined using scale_y
Returns
scaled image
Note
resize and scale are not the exact same functions. The perform the the same operations but scale does not clamp values to the boundaries.