ARM Compute Library
17.04
|
Go to the source code of this file.
Functions | |
uchar8 | median_disk5x5 (uchar16 top2, uchar16 top, uchar16 middle, uchar16 bottom, uchar16 bottom2) |
Sorting network to sort 8 disks of diameter 5 and return their median. More... | |
uchar8 | median_box5x5 (uchar16 top2, uchar16 top, uchar16 middle, uchar16 bottom, uchar16 bottom2) |
Sorting network to sort 8 boxes of size 5 and return their median. More... | |
__kernel void | non_linear_filter_box5x5 (__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 uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes) |
This function applies a non linear filter on a 5x5 box basis on an input image. More... | |
__kernel void | non_linear_filter_cross5x5 (__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 uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes) |
This function applies a non linear filter on a 5x5 cross basis on an input image. More... | |
__kernel void | non_linear_filter_disk5x5 (__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 uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes) |
This function applies a non linear filter on a 5x5 disk basis on an input image. More... | |
|
inline |
Sorting network to sort 8 boxes of size 5 and return their median.
[in] | top2 | Values of elements two rows above. |
[in] | top | Values of elements one row above. |
[in] | middle | Values of middle elements. |
[in] | bottom | Values of elements one row below. |
[in] | bottom2 | Values of elements two rows below. |
Definition at line 178 of file non_linear_filter5x5.cl.
References SORT.
Referenced by non_linear_filter_box5x5().
|
inline |
Sorting network to sort 8 disks of diameter 5 and return their median.
[in] | top2 | Values of elements two rows above. |
[in] | top | Values of elements one row above. |
[in] | middle | Values of middle elements. |
[in] | bottom | Values of elements one row below. |
[in] | bottom2 | Values of elements two rows below. |
Definition at line 39 of file non_linear_filter5x5.cl.
References SORT.
Referenced by non_linear_filter_disk5x5().
__kernel void non_linear_filter_box5x5 | ( | __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 uchar * | dst_ptr, | ||
uint | dst_stride_x, | ||
uint | dst_step_x, | ||
uint | dst_stride_y, | ||
uint | dst_step_y, | ||
uint | dst_offset_first_element_in_bytes | ||
) |
This function applies a non linear filter on a 5x5 box basis on 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] | dst_ptr | Pointer to the destination image. Supported data types: U8 |
[in] | dst_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | dst_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | dst_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | dst_step_y | dst_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | dst_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 339 of file non_linear_filter5x5.cl.
References CONVERT_TO_IMAGE_STRUCT, median_box5x5(), offset(), Image::ptr, row_reduce_max_5(), and row_reduce_min_5().
__kernel void non_linear_filter_cross5x5 | ( | __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 uchar * | dst_ptr, | ||
uint | dst_stride_x, | ||
uint | dst_step_x, | ||
uint | dst_stride_y, | ||
uint | dst_step_y, | ||
uint | dst_offset_first_element_in_bytes | ||
) |
This function applies a non linear filter on a 5x5 cross basis on 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] | dst_ptr | Pointer to the destination image. Supported data types: U8 |
[in] | dst_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | dst_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | dst_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | dst_step_y | dst_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | dst_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 387 of file non_linear_filter5x5.cl.
References CONVERT_TO_IMAGE_STRUCT, offset(), Image::ptr, row_reduce_max_5(), row_reduce_min_5(), and sort9().
__kernel void non_linear_filter_disk5x5 | ( | __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 uchar * | dst_ptr, | ||
uint | dst_stride_x, | ||
uint | dst_step_x, | ||
uint | dst_stride_y, | ||
uint | dst_step_y, | ||
uint | dst_offset_first_element_in_bytes | ||
) |
This function applies a non linear filter on a 5x5 disk basis on 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] | dst_ptr | Pointer to the destination image. Supported data types: U8 |
[in] | dst_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | dst_step_x | dst_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | dst_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | dst_step_y | dst_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | dst_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 444 of file non_linear_filter5x5.cl.
References CONVERT_TO_IMAGE_STRUCT, median_disk5x5(), offset(), Image::ptr, row_reduce_max_3(), row_reduce_max_5(), row_reduce_min_3(), and row_reduce_min_5().