Documentation
|
|
The C++ interface for affine transformation. More...
| array | transform (const array &image, const array &transform, const unsigned oh=0, const unsigned ow=0, const bool inverse=true) |
The C++ interface for affine transformation.
Affine transformations allow transformation of images using a transform matrix. The matrix represents the operation to be performed on the image. The transformation matrix is a 3x2 matrix consisting of a 2x2 rotation matrix R combined with a 1x2 translation matrix T.
Matrix Transform = | R | = | r00 r01 | | T | | r10 r11 | | t00 t01 |
The operations that can be represented using this matrix form include rotation, translation, scaling and skew among others.
For more on warp affine transforms, see: Warp Affine Transformations
| array af::transform | ( | const array & | image, |
| const array & | transform, | ||
| const unsigned | oh = 0, |
||
| const unsigned | ow = 0, |
||
| const bool | inverse = true |
||
| ) |
| [in] | image | input image |
| [in] | transform | affine transform matrix of size 3x2 |
| [in] | oh | specify output height of image, if (0, default) then output height is equal to input height |
| [in] | ow | specify output width of image, if (0, default) then output width is equal to input width |
| [in] | inverse | forward transform (false) or inverse transform (true, default) |