Compute Library
17.09
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | accumulate (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *accu_ptr, uint accu_stride_x, uint accu_step_x, uint accu_stride_y, uint accu_step_y, uint accu_offset_first_element_in_bytes) |
This function accumulates an input image into output image. More... | |
__kernel void | accumulate_weighted (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *accu_ptr, uint accu_stride_x, uint accu_step_x, uint accu_stride_y, uint accu_step_y, uint accu_offset_first_element_in_bytes, const float alpha) |
This function accumulates a weighted value from an input image to an output image. More... | |
__kernel void | accumulate_squared (__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *accu_ptr, uint accu_stride_x, uint accu_step_x, uint accu_stride_y, uint accu_step_y, uint accu_offset_first_element_in_bytes, const uint shift) |
This function accumulates a squared value from an input image to an output image. More... | |
__kernel void accumulate | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | accu_ptr, | ||
uint | accu_stride_x, | ||
uint | accu_step_x, | ||
uint | accu_stride_y, | ||
uint | accu_step_y, | ||
uint | accu_offset_first_element_in_bytes | ||
) |
This function accumulates an input image into output image.
[in] | input_ptr | Pointer to the source image. Supported data types: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | accu_ptr | Pointer to the destination image. Supported data types: S16 |
[in] | accu_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | accu_step_x | accu_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | accu_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | accu_step_y | accu_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | accu_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 41 of file accumulate.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
Referenced by arm_compute::calculate_matrix_scale(), Dimensions< size_t >::collapse(), arm_compute::data_type_for_convolution(), arm_compute::data_type_for_convolution_matrix(), arm_compute::test::join(), arm_compute::test::validation::reference::mean_and_standard_deviation(), arm_compute::pixel_area_c1u8_clamp(), JSONPrinter::print_measurements(), PrettyPrinter::print_measurements(), SimpleTensor< T >::size(), TensorShape::total_size(), TensorShape::total_size_lower(), and TensorShape::total_size_upper().
__kernel void accumulate_squared | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | accu_ptr, | ||
uint | accu_stride_x, | ||
uint | accu_step_x, | ||
uint | accu_stride_y, | ||
uint | accu_step_y, | ||
uint | accu_offset_first_element_in_bytes, | ||
const uint | shift | ||
) |
This function accumulates a squared value from an input image to an output image.
[in] | input_ptr | Pointer to the source image. Supported data types: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | accu_ptr | Pointer to the destination image. Supported data types: S16 |
[in] | accu_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | accu_step_x | accu_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | accu_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | accu_step_y | accu_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | accu_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | shift | The U32 scalar value with a value in the range of 0 to 15 |
Definition at line 112 of file accumulate.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.
__kernel void accumulate_weighted | ( | __global uchar * | input_ptr, |
uint | input_stride_x, | ||
uint | input_step_x, | ||
uint | input_stride_y, | ||
uint | input_step_y, | ||
uint | input_offset_first_element_in_bytes, | ||
__global uchar * | accu_ptr, | ||
uint | accu_stride_x, | ||
uint | accu_step_x, | ||
uint | accu_stride_y, | ||
uint | accu_step_y, | ||
uint | accu_offset_first_element_in_bytes, | ||
const float | alpha | ||
) |
This function accumulates a weighted value from an input image to an output image.
[in] | input_ptr | Pointer to the source image. Supported data types: U8 |
[in] | input_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | input_step_x | input_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | input_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | input_step_y | input_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | input_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | accu_ptr | Pointer to the destination image. Supported data types: S16 |
[in] | accu_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | accu_step_x | accu_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | accu_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | accu_step_y | accu_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | accu_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | alpha | The float scalar value with a value in the range of 0 to 1 |
Definition at line 76 of file accumulate.cl.
References CONVERT_TO_IMAGE_STRUCT, and Image::ptr.