21.02
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | threshold_binary (__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes, const uchar false_val, const uchar true_val, const uchar threshold) |
Perform binary thresholding on an image. More... | |
__kernel void | threshold_range (__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes, const uchar false_val, const uchar true_val, const uchar lower, const uchar upper) |
Perform range thresholding on an image. More... | |
__kernel void threshold_binary | ( | __global uchar * | in_ptr, |
uint | in_stride_x, | ||
uint | in_step_x, | ||
uint | in_stride_y, | ||
uint | in_step_y, | ||
uint | in_offset_first_element_in_bytes, | ||
__global uchar * | out_ptr, | ||
uint | out_stride_x, | ||
uint | out_step_x, | ||
uint | out_stride_y, | ||
uint | out_step_y, | ||
uint | out_offset_first_element_in_bytes, | ||
const uchar | false_val, | ||
const uchar | true_val, | ||
const uchar | threshold | ||
) |
Perform binary thresholding on an image.
[in] | in_ptr | Pointer to the source image |
[in] | in_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in_step_y | src_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in_offset_first_element_in_bytes | The offset of the first element in the first source image |
[out] | out_ptr | Pointer to the destination image |
[in] | out_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | out_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | out_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | out_step_y | dst_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | out_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | false_val | False value |
[in] | true_val | True value |
[in] | threshold | The thresold value |
Definition at line 44 of file threshold.cl.
References CONVERT_TO_IMAGE_STRUCT, Image::ptr, and arm_compute::test::validation::reference::select().
__kernel void threshold_range | ( | __global uchar * | in_ptr, |
uint | in_stride_x, | ||
uint | in_step_x, | ||
uint | in_stride_y, | ||
uint | in_step_y, | ||
uint | in_offset_first_element_in_bytes, | ||
__global uchar * | out_ptr, | ||
uint | out_stride_x, | ||
uint | out_step_x, | ||
uint | out_stride_y, | ||
uint | out_step_y, | ||
uint | out_offset_first_element_in_bytes, | ||
const uchar | false_val, | ||
const uchar | true_val, | ||
const uchar | lower, | ||
const uchar | upper | ||
) |
Perform range thresholding on an image.
[in] | in_ptr | Pointer to the source image |
[in] | in_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in_step_y | src_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in_offset_first_element_in_bytes | The offset of the first element in the first source image |
[out] | out_ptr | Pointer to the destination image |
[in] | out_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | out_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | out_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | out_step_y | dst_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | out_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | false_val | False value |
[in] | true_val | True value |
[in] | lower | Lower threshold |
[in] | upper | Upper threshold |
Definition at line 84 of file threshold.cl.
References CONVERT_TO_IMAGE_STRUCT, Image::ptr, and arm_compute::test::validation::reference::select().