21.02
|
#include "helpers_asymm.h"
Go to the source code of this file.
Functions | |
const float8 | clamp_to_border_with_size_quantized (float8 coords, const float width, const float height, const float border_size) |
Clamps the given coordinates to the borders according to the border size. More... | |
const float8 | clamp_to_border_quantized (float8 coords, const float width, const float height) |
Clamps the given coordinates to the borders. More... | |
const float8 | get_neighbour_coords_quantized (const float2 coord) |
Given a texel coordinates this function will return the following array of coordinates: [ P, right neighbour, below neighbour, below right neighbour ]. More... | |
const float2 | get_current_coords_quantized () |
Returns the current thread coordinates. More... | |
const DATA_TYPE4 | bilinear_interpolate_with_border_quantized (const Image *in, const float8 coords, const float width, const float height, const float border_size, const float scale, const int offset_qasymm) |
Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. More... | |
const DATA_TYPE4 | bilinear_interpolate_quantized (const Image *in, const float8 coords, const float width, const float height, const float scale, const int offset_qasymm) |
Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. More... | |
|
inline |
Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values.
[in] | in | Pointer to the source image. |
[in] | coords | Vector of four 2D coordinates. Even pos is x and odd y. |
[in] | width | Width of the image |
[in] | height | Height of the image |
[in] | scale | Scale value |
[in] | offset_qasymm | Offset value |
Definition at line 135 of file warp_helpers_quantized.h.
References bilinear_interpolate_with_border_quantized().
|
inline |
Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values.
[in] | in | Pointer to the source image. |
[in] | coords | Vector of four 2D coordinates. Even pos is x and odd y. |
[in] | width | Width of the image |
[in] | height | Height of the image |
[in] | border_size | Border size |
[in] | scale | Scale value |
[in] | offset_qasymm | Offset value |
Definition at line 84 of file warp_helpers_quantized.h.
References arm_compute::test::validation::b, clamp_to_border_with_size_quantized(), CONVERT_SAT, DATA_TYPE, get_neighbour_coords_quantized(), offset(), tf_frozen_model_extractor::t, and VEC_DATA_TYPE.
Referenced by bilinear_interpolate_quantized(), and scale_bilinear_quantized_nchw().
|
inline |
Clamps the given coordinates to the borders.
[in] | coords | Vector of 2D coordinates to clamp. Even positions are X coords, odd positions are Y coords. |
[in] | width | Width of the image |
[in] | height | Height of the image |
Definition at line 49 of file warp_helpers_quantized.h.
References clamp_to_border_with_size_quantized().
|
inline |
Clamps the given coordinates to the borders according to the border size.
[in] | coords | Vector of 2D coordinates to clamp. Even positions are X coords, odd positions are Y coords. |
[in] | width | Width of the image |
[in] | height | Height of the image |
[in] | border_size | Border size of the image |
Definition at line 34 of file warp_helpers_quantized.h.
References arm_compute::utility::clamp().
Referenced by bilinear_interpolate_with_border_quantized(), and clamp_to_border_quantized().
|
inline |
Returns the current thread coordinates.
Definition at line 69 of file warp_helpers_quantized.h.
Referenced by scale_bilinear_quantized_nchw().
|
inline |
Given a texel coordinates this function will return the following array of coordinates: [ P, right neighbour, below neighbour, below right neighbour ].
[in] | coord | Input coordinates |
Definition at line 63 of file warp_helpers_quantized.h.
Referenced by bilinear_interpolate_with_border_quantized().