21.08
|
Functions | |
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... | |
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 186 of file ScaleHelpers.h.
Referenced by arm_compute::cpu::bilinear_neon_scale(), and CpuScaleKernel::configure().
|
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 53 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 88 of file ScaleHelpers.h.
References ARM_COMPUTE_ERROR_ON, arm_compute::dequantize_qasymm8_signed(), and arm_compute::quantize_qasymm8_signed().
|
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 126 of file ScaleHelpers.h.
References arm_compute::test::validation::reference::accumulate(), and ARM_COMPUTE_ERROR_ON.
Referenced by CpuScaleKernel::configure().