Enumerations | |
enum | af_resize_t { AF_RSZ_Nearest = 0, AF_RSZ_Bilinear = 1 } |
Resize interpolation method. More... | |
Functions | |
array | rotate (const array &image, const float theta, bool iscrop=true) |
Image rotation. | |
array | resize (const array &image, float scale, af_resize_t type=AF_RSZ_Nearest) |
Resize an image uniformly. | |
array | resize (const array &image, float height, float width, af_resize_t type=AF_RSZ_Nearest) |
Resize an image. |
enum af_resize_t |
array af::rotate | ( | const array & | image, |
const float | theta, | ||
bool | iscrop = true |
||
) |
Image rotation.
[in] | image | |
[in] | theta | clockwise rotation angle in radians. |
[in] | iscrop | Use in-place rotation and crop outlying pixels (true , default), else enlarge image domain to fit rotation (false ) |
array af::resize | ( | const array & | image, |
float | scale, | ||
af_resize_t | type = AF_RSZ_Nearest |
||
) |
Resize an image uniformly.
[in] | image | |
[in] | type | type of image interpolation (default AF_RSZ_Nearest, see af_resize_t) |
[in] | scale | Scaled image size (e.g. "1.1" scales image up 10%). Height and width scaled uniformly. |
array af::resize | ( | const array & | image, |
float | height, | ||
float | width, | ||
af_resize_t | type = AF_RSZ_Nearest |
||
) |
Resize an image.
[in] | image | |
[in] | type | type of image interpolation (default AF_RSZ_Nearest, see af_resize_t) |
[in] | height | output image height scale |
[in] | width | output image width scale |