21.02
|
Functions | |
template<typename T > | |
T | delta_bilinear_c1 (const T *pixel_ptr, size_t stride, float dx, float dy) |
Computes bilinear interpolation using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
uint8_t | delta_bilinear_c1_quantized (const uint8_t *pixel_ptr, size_t stride, float dx, float dy, UniformQuantizationInfo iq_info, UniformQuantizationInfo oq_info) |
Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
int8_t | delta_bilinear_c1_quantized (const int8_t *pixel_ptr, size_t stride, float dx, float dy, UniformQuantizationInfo iq_info, UniformQuantizationInfo oq_info) |
Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
template<typename T > | |
T | delta_linear_c1_y (const T *pixel_ptr, size_t stride, float dy) |
Computes linear interpolation using the pointer to the top pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
template<typename T > | |
T | delta_linear_c1_x (const T *pixel_ptr, float dx) |
Computes linear interpolation using the pointer to the left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
template<typename T > | |
T | pixel_bilinear_c1 (const T *first_pixel_ptr, size_t stride, float x, float y) |
Return the pixel at (x,y) using bilinear interpolation. More... | |
template<typename T > | |
uint8_t | pixel_bilinear_c1_clamp (const T *first_pixel_ptr, size_t stride, size_t width, size_t height, float x, float y) |
Return the pixel at (x,y) using bilinear interpolation by clamping when out of borders. More... | |
uint8_t | pixel_area_c1u8_clamp (const uint8_t *first_pixel_ptr, size_t stride, size_t width, size_t height, float wr, float hr, int x, int y) |
Return the pixel at (x,y) using area interpolation by clamping when out of borders. More... | |
float | delta_bilinear (float a00, float a01, float a10, float a11, float dx_val, float dy_val) |
Computes bilinear interpolation using the top-left, top-right, bottom-left, bottom-right pixels and the pixel's distance between the real coordinates and the smallest following integer coordinates. More... | |
|
inline |
Computes bilinear interpolation using the top-left, top-right, bottom-left, bottom-right pixels and the pixel's distance between the real coordinates and the smallest following integer coordinates.
[in] | a00 | The top-left pixel value. |
[in] | a01 | The top-right pixel value. |
[in] | a10 | The bottom-left pixel value. |
[in] | a11 | The bottom-right pixel value. |
[in] | dx_val | Pixel's distance between the X real coordinate and the smallest X following integer |
[in] | dy_val | Pixel's distance between the Y real coordinate and the smallest Y following integer |
Definition at line 343 of file ScaleHelpers.h.
|
inline |
Computes bilinear interpolation using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates.
Input must be in single channel format.
[in] | pixel_ptr | Pointer to the top-left pixel value of a single channel input. |
[in] | stride | Stride to access the bottom-left and bottom-right pixel values |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer |
Definition at line 52 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON.
Referenced by pixel_bilinear_c1(), and pixel_bilinear_c1_clamp().
|
inline |
Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates.
Input must be QASYMM8 and in single channel format.
[in] | pixel_ptr | Pointer to the top-left pixel value of a single channel input. |
[in] | stride | Stride to access the bottom-left and bottom-right pixel values |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer |
[in] | iq_info | Input QuantizationInfo |
[in] | oq_info | Output QuantizationInfo |
Definition at line 86 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON, arm_compute::dequantize_qasymm8(), and arm_compute::quantize_qasymm8().
|
inline |
Computes bilinear interpolation for quantized input and output, using the pointer to the top-left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates.
Input must be QASYMM8_SIGNED and in single channel format.
[in] | pixel_ptr | Pointer to the top-left pixel value of a single channel input. |
[in] | stride | Stride to access the bottom-left and bottom-right pixel values |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer |
[in] | iq_info | Input QuantizationInfo |
[in] | oq_info | Output QuantizationInfo |
Definition at line 121 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON, arm_compute::dequantize_qasymm8_signed(), and arm_compute::quantize_qasymm8_signed().
|
inline |
Computes linear interpolation using the pointer to the left pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates.
Input must be in single channel format.
[in] | pixel_ptr | Pointer to the left pixel value of a single channel input. |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer |
Definition at line 180 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON.
Referenced by pixel_bilinear_c1_clamp().
|
inline |
Computes linear interpolation using the pointer to the top pixel and the pixel's distance between the real coordinates and the smallest following integer coordinates.
Input must be in single channel format.
[in] | pixel_ptr | Pointer to the top pixel value of a single channel input. |
[in] | stride | Stride to access the bottom pixel value |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer |
Definition at line 154 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON.
Referenced by pixel_bilinear_c1_clamp().
|
inline |
Return the pixel at (x,y) using area interpolation by clamping when out of borders.
The image must be single channel U8
[in] | first_pixel_ptr | Pointer to the first pixel of a single channel U8 image. |
[in] | stride | Stride in bytes of the image |
[in] | width | Width of the image |
[in] | height | Height of the image |
[in] | wr | Width ratio among the input image width and output image width. |
[in] | hr | Height ratio among the input image height and output image height. |
[in] | x | X position of the wanted pixel |
[in] | y | Y position of the wanted pixel |
Definition at line 283 of file ScaleHelpers.h.
References accumulate(), ARM_COMPUTE_ERROR_ON, and sum().
|
inline |
Return the pixel at (x,y) using bilinear interpolation.
[in] | first_pixel_ptr | Pointer to the first pixel of a single channel input. |
[in] | stride | Stride in bytes of the image; |
[in] | x | X position of the wanted pixel |
[in] | y | Y position of the wanted pixel |
Definition at line 207 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON, and delta_bilinear_c1().
Referenced by INEWarpKernel::configure().
|
inline |
Return the pixel at (x,y) using bilinear interpolation by clamping when out of borders.
The image must be single channel input
[in] | first_pixel_ptr | Pointer to the first pixel of a single channel image. |
[in] | stride | Stride in bytes of the image |
[in] | width | Width of the image |
[in] | height | Height of the image |
[in] | x | X position of the wanted pixel |
[in] | y | Y position of the wanted pixel |
Definition at line 235 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON, delta_bilinear_c1(), delta_linear_c1_x(), and delta_linear_c1_y().