23.11
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
const float8 | clamp_to_border_with_size (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 (float8 coords, const float width, const float height) |
Clamps the given coordinates to the borders. More... | |
const DATA_TYPE4 | read_texels4 (const Image *in, const int8 coords) |
Reads four texels from the input image. More... | |
const float8 | get_neighbour_coords (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 DATA_TYPE4 | bilinear_interpolate_with_border (const Image *in, const float8 coords, const float width, const float height, const float border_size) |
Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. More... | |
const DATA_TYPE4 | bilinear_interpolate (const Image *in, const float8 coords, const float width, const float height) |
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 |
Definition at line 134 of file warp_helpers.h.
References bilinear_interpolate_with_border().
|
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 |
Definition at line 91 of file warp_helpers.h.
References arm_compute::test::validation::b, clamp_to_border_with_size(), CONVERT, get_neighbour_coords(), offset(), tf_frozen_model_extractor::t, and VEC_DATA_TYPE.
Referenced by bilinear_interpolate().
|
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 50 of file warp_helpers.h.
References clamp_to_border_with_size().
|
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 35 of file warp_helpers.h.
References arm_compute::utility::clamp().
Referenced by bilinear_interpolate_with_border(), and clamp_to_border().
|
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 77 of file warp_helpers.h.
Referenced by bilinear_interpolate_with_border().
|
inline |
Reads four texels from the input image.
The coords vector is used to determine which texels to be read.
[in] | in | Pointer to the source image. |
[in] | coords | Vector of coordinates to be read from the image. |
Definition at line 60 of file warp_helpers.h.
References offset(), and VEC_DATA_TYPE.