Documentation
|
|
The C interface for resize. More...
| afError | af_resize_S (const unsigned mO, const unsigned nO, float *d_out, const unsigned mI, const unsigned nI, const float *d_in, const unsigned channels, const int type=1) |
| Image resizing. More... | |
| afError | af_resize_D (const unsigned mO, const unsigned nO, double *d_out, const unsigned mI, const unsigned nI, const double *d_in, const unsigned channels, const int type=1) |
| Image resize, double precision. More... | |
The C interface for resize.
The resize function scales an image up or down based on a constant scaling factor or an explicit new size. resize provides two methods for this operation, nearest neighbor interpolation and bilinear interpolation.
The following examples illustrate the difference between the two types of interpolation:
| afError af_resize_S | ( | const unsigned | mO, |
| const unsigned | nO, | ||
| float * | d_out, | ||
| const unsigned | mI, | ||
| const unsigned | nI, | ||
| const float * | d_in, | ||
| const unsigned | channels, | ||
| const int | type = 1 |
||
| ) |
Image resizing.
| [in] | mO | Number of rows in output image |
| [in] | nO | Number of columns in output image |
| [out] | d_out | The output image |
| [in] | mI | Number of rows in input image |
| [in] | nI | Number of columns in input image |
| [in] | d_in | Input image |
| [in] | channels | specifies color channels of the image {1 or 3} |
| [in] | type | specifies type of image interpolation {nearest(0),bilinear(1)}Image resize, single precision |
| afError af_resize_D | ( | const unsigned | mO, |
| const unsigned | nO, | ||
| double * | d_out, | ||
| const unsigned | mI, | ||
| const unsigned | nI, | ||
| const double * | d_in, | ||
| const unsigned | channels, | ||
| const int | type = 1 |
||
| ) |
Image resize, double precision.