The C++ interface for translate. More...

array translate (const array &image, const float trans_x, const float trans_y, const unsigned oh=0, const unsigned ow=0)
 

Detailed Description

The C++ interface for translate.

Translate the input image by trans_x units along x-dimension and trans_y units along y-dimension.

Function Documentation

array af::translate ( const array &  image,
const float  trans_x,
const float  trans_y,
const unsigned  oh = 0,
const unsigned  ow = 0 
)
Parameters
[in]imageinput image
[in]trans_xmagnitude of translation along x (1st or height) dimension
[in]trans_ymagnitude of translation along y (2nd or width) dimension
[in]ohspecify output height of image, if (0, default) then output height is equal to input height
[in]owspecify output width of image, if (0, default) then output width is equal to input width
Returns
translated image