21.02
|
Go to the source code of this file.
Macros | |
#define | DATA_TYPE_MIN 0x0 |
#define | DATA_TYPE_MAX 0xFF |
Functions | |
int | FloatFlip (float val) |
__kernel void | minmax (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global int *min_max, int width) |
This function identifies the min and maximum value of an input image. More... | |
__kernel void | minmaxloc (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global int *min_max, __global uint *min_max_count, __global Coordinates2D *min_loc, uint max_min_loc_count, __global Coordinates2D *max_loc, uint max_max_loc_count) |
This function counts the min and max occurrences in an image and tags their position. More... | |
Variables | |
__constant DATA_TYPE16 | type_min = ( DATA_TYPE16 )( 0x0 ) |
__constant DATA_TYPE16 | type_max = ( DATA_TYPE16 )( 0xFF ) |
__constant int16 | idx16 = (int16)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) |
#define DATA_TYPE_MAX 0xFF |
Definition at line 32 of file minmaxloc.cl.
#define DATA_TYPE_MIN 0x0 |
Definition at line 28 of file minmaxloc.cl.
|
inline |
Definition at line 35 of file minmaxloc.cl.
References arm_compute::mlgo::parser::int_val().
Referenced by minmax().
__kernel void minmax | ( | __global uchar * | src_ptr, |
uint | src_stride_x, | ||
uint | src_step_x, | ||
uint | src_stride_y, | ||
uint | src_step_y, | ||
uint | src_offset_first_element_in_bytes, | ||
__global int * | min_max, | ||
int | width | ||
) |
This function identifies the min and maximum value of an input image.
[in] | src_ptr | Pointer to the source image. Supported data types: U8 |
[in] | src_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | src_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | src_step_y | src_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | min_max | Pointer to buffer with minimum value in position 0 and maximum value in position 1 |
[in] | width | Input image width |
Definition at line 65 of file minmaxloc.cl.
References CONVERT, CONVERT_TO_IMAGE_STRUCT, FloatFlip(), idx16, offset(), arm_compute::test::validation::reference::select(), type_max, type_min, and VEC_DATA_TYPE.
__kernel void minmaxloc | ( | __global uchar * | src_ptr, |
uint | src_stride_x, | ||
uint | src_step_x, | ||
uint | src_stride_y, | ||
uint | src_step_y, | ||
uint | src_offset_first_element_in_bytes, | ||
__global int * | min_max, | ||
__global uint * | min_max_count, | ||
__global Coordinates2D * | min_loc, | ||
uint | max_min_loc_count, | ||
__global Coordinates2D * | max_loc, | ||
uint | max_max_loc_count | ||
) |
This function counts the min and max occurrences in an image and tags their position.
[in] | src_ptr | Pointer to the source image. Supported data types: U8 |
[in] | src_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | src_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | src_step_y | src_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | min_max | Pointer to buffer with minimum value in position 0 and maximum value in position 1 |
[out] | min_max_count | Pointer to buffer with minimum value occurrences in position 0 and maximum value occurrences in position 1 |
[out] | min_loc | Array that holds the location of the minimum value occurrences |
[in] | max_min_loc_count | The maximum number of min value occurrences coordinates the array can hold |
[out] | max_loc | Array that holds the location of the maximum value occurrences |
[in] | max_max_loc_count | The maximum number of max value occurrences coordinates the array can hold |
Definition at line 143 of file minmaxloc.cl.
References CONVERT_TO_IMAGE_STRUCT, DATA_TYPE, and arm_compute::test::validation::src.
__constant int16 idx16 = (int16)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) |
Definition at line 48 of file minmaxloc.cl.
Referenced by minmax().
__constant DATA_TYPE16 type_max = ( DATA_TYPE16 )( 0xFF ) |
Definition at line 47 of file minmaxloc.cl.
Referenced by minmax(), and NEGEMMLowpOffsetContributionOutputStageKernel::run().
__constant DATA_TYPE16 type_min = ( DATA_TYPE16 )( 0x0 ) |
Definition at line 46 of file minmaxloc.cl.
Referenced by ClPoolingKernel::configure(), minmax(), and NEGEMMLowpOffsetContributionOutputStageKernel::run().