Compute Library
18.05
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | harris_score_3x3 (__global uchar *src_gx_ptr, uint src_gx_stride_x, uint src_gx_step_x, uint src_gx_stride_y, uint src_gx_step_y, uint src_gx_offset_first_element_in_bytes, __global uchar *src_gy_ptr, uint src_gy_stride_x, uint src_gy_step_x, uint src_gy_stride_y, uint src_gy_step_y, uint src_gy_offset_first_element_in_bytes, __global uchar *vc_ptr, uint vc_stride_x, uint vc_step_x, uint vc_stride_y, uint vc_step_y, uint vc_offset_first_element_in_bytes, float sensitivity, float strength_thresh, float pow4_normalization_factor) |
Function running harris score on 3x3 block size. More... | |
float16 | harris_score_1x5 (Image *src_gx, Image *src_gy, int row) |
Function for calculating harris score 1x5. More... | |
__kernel void | harris_score_5x5 (__global uchar *src_gx_ptr, uint src_gx_stride_x, uint src_gx_step_x, uint src_gx_stride_y, uint src_gx_step_y, uint src_gx_offset_first_element_in_bytes, __global uchar *src_gy_ptr, uint src_gy_stride_x, uint src_gy_step_x, uint src_gy_stride_y, uint src_gy_step_y, uint src_gy_offset_first_element_in_bytes, __global uchar *vc_ptr, uint vc_stride_x, uint vc_step_x, uint vc_stride_y, uint vc_step_y, uint vc_offset_first_element_in_bytes, float sensitivity, float strength_thresh, float pow4_normalization_factor) |
Function running harris score on 5x5 block size. More... | |
float16 | harris_score_1x7 (Image *src_gx, Image *src_gy, int row) |
Function for calculating harris score 1x7. More... | |
__kernel void | harris_score_7x7 (__global uchar *src_gx_ptr, uint src_gx_stride_x, uint src_gx_step_x, uint src_gx_stride_y, uint src_gx_step_y, uint src_gx_offset_first_element_in_bytes, __global uchar *src_gy_ptr, uint src_gy_stride_x, uint src_gy_step_x, uint src_gy_stride_y, uint src_gy_step_y, uint src_gy_offset_first_element_in_bytes, __global uchar *vc_ptr, uint vc_stride_x, uint vc_step_x, uint vc_stride_y, uint vc_step_y, uint vc_offset_first_element_in_bytes, float sensitivity, float strength_thresh, float pow4_normalization_factor) |
Function running harris score on 7x7 block size. More... | |
Function for calculating harris score 1x5.
[in] | src_gx | Pointer to gx gradient image. |
[in] | src_gy | Pointer to gy gradient image. |
[in] | row | Relative row. |
Definition at line 138 of file harris_corners.cl.
References DATA_TYPE, offset(), and VEC_DATA_TYPE.
Referenced by harris_score_5x5().
Function for calculating harris score 1x7.
[in] | src_gx | Pointer to gx gradient image. |
[in] | src_gy | Pointer to gy gradient image. |
[in] | row | Relative row. |
Definition at line 253 of file harris_corners.cl.
References DATA_TYPE, offset(), and VEC_DATA_TYPE.
Referenced by harris_score_7x7().
__kernel void harris_score_3x3 | ( | __global uchar * | src_gx_ptr, |
uint | src_gx_stride_x, | ||
uint | src_gx_step_x, | ||
uint | src_gx_stride_y, | ||
uint | src_gx_step_y, | ||
uint | src_gx_offset_first_element_in_bytes, | ||
__global uchar * | src_gy_ptr, | ||
uint | src_gy_stride_x, | ||
uint | src_gy_step_x, | ||
uint | src_gy_stride_y, | ||
uint | src_gy_step_y, | ||
uint | src_gy_offset_first_element_in_bytes, | ||
__global uchar * | vc_ptr, | ||
uint | vc_stride_x, | ||
uint | vc_step_x, | ||
uint | vc_stride_y, | ||
uint | vc_step_y, | ||
uint | vc_offset_first_element_in_bytes, | ||
float | sensitivity, | ||
float | strength_thresh, | ||
float | pow4_normalization_factor | ||
) |
Function running harris score on 3x3 block size.
[in] | src_gx_ptr | Pointer to the first source image. Supported data types: S16, S32 |
[in] | src_gx_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | src_gx_step_x | src_gx_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gx_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | src_gx_step_y | src_gx_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gx_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | src_gy_ptr | Pointer to the second source image. Supported data types: S16, S32 |
[in] | src_gy_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | src_gy_step_x | src_gy_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gy_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | src_gy_step_y | src_gy_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gy_offset_first_element_in_bytes | The offset of the first element in the destination image |
[out] | vc_ptr | Pointer to the destination image. Supported data types: F32 |
[in] | vc_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | vc_step_x | vc_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | vc_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | vc_step_y | vc_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | vc_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | sensitivity | Sensitivity threshold k from the Harris-Stephens equation |
[in] | strength_thresh | Minimum threshold with which to eliminate Harris Corner scores |
[in] | pow4_normalization_factor | Normalization factor to apply harris score |
Definition at line 53 of file harris_corners.cl.
References CONVERT_TO_IMAGE_STRUCT, DATA_TYPE, offset(), Image::ptr, and VEC_DATA_TYPE.
__kernel void harris_score_5x5 | ( | __global uchar * | src_gx_ptr, |
uint | src_gx_stride_x, | ||
uint | src_gx_step_x, | ||
uint | src_gx_stride_y, | ||
uint | src_gx_step_y, | ||
uint | src_gx_offset_first_element_in_bytes, | ||
__global uchar * | src_gy_ptr, | ||
uint | src_gy_stride_x, | ||
uint | src_gy_step_x, | ||
uint | src_gy_stride_y, | ||
uint | src_gy_step_y, | ||
uint | src_gy_offset_first_element_in_bytes, | ||
__global uchar * | vc_ptr, | ||
uint | vc_stride_x, | ||
uint | vc_step_x, | ||
uint | vc_stride_y, | ||
uint | vc_step_y, | ||
uint | vc_offset_first_element_in_bytes, | ||
float | sensitivity, | ||
float | strength_thresh, | ||
float | pow4_normalization_factor | ||
) |
Function running harris score on 5x5 block size.
[in] | src_gx_ptr | Pointer to the first source image. Supported data types: S16, S32 |
[in] | src_gx_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | src_gx_step_x | src_gx_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gx_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | src_gx_step_y | src_gx_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gx_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | src_gy_ptr | Pointer to the second source image. Supported data types: S16, S32 |
[in] | src_gy_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | src_gy_step_x | src_gy_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gy_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | src_gy_step_y | src_gy_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gy_offset_first_element_in_bytes | The offset of the first element in the destination image |
[out] | vc_ptr | Pointer to the destination image. Supported data types: F32 |
[in] | vc_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | vc_step_x | vc_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | vc_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | vc_step_y | vc_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | vc_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | sensitivity | Sensitivity threshold k from the Harris-Stephens equation |
[in] | strength_thresh | Minimum threshold with which to eliminate Harris Corner scores |
[in] | pow4_normalization_factor | Normalization factor to apply harris score |
Definition at line 210 of file harris_corners.cl.
References CONVERT_TO_IMAGE_STRUCT, harris_score_1x5(), and Image::ptr.
__kernel void harris_score_7x7 | ( | __global uchar * | src_gx_ptr, |
uint | src_gx_stride_x, | ||
uint | src_gx_step_x, | ||
uint | src_gx_stride_y, | ||
uint | src_gx_step_y, | ||
uint | src_gx_offset_first_element_in_bytes, | ||
__global uchar * | src_gy_ptr, | ||
uint | src_gy_stride_x, | ||
uint | src_gy_step_x, | ||
uint | src_gy_stride_y, | ||
uint | src_gy_step_y, | ||
uint | src_gy_offset_first_element_in_bytes, | ||
__global uchar * | vc_ptr, | ||
uint | vc_stride_x, | ||
uint | vc_step_x, | ||
uint | vc_stride_y, | ||
uint | vc_step_y, | ||
uint | vc_offset_first_element_in_bytes, | ||
float | sensitivity, | ||
float | strength_thresh, | ||
float | pow4_normalization_factor | ||
) |
Function running harris score on 7x7 block size.
[in] | src_gx_ptr | Pointer to the first source image. Supported data types: S16, S32 |
[in] | src_gx_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | src_gx_step_x | src_gx_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gx_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | src_gx_step_y | src_gx_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gx_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | src_gy_ptr | Pointer to the second source image. Supported data types: S16, S32 |
[in] | src_gy_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | src_gy_step_x | src_gy_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | src_gy_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | src_gy_step_y | src_gy_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | src_gy_offset_first_element_in_bytes | The offset of the first element in the destination image |
[out] | vc_ptr | Pointer to the destination image. Supported data types: F32 |
[in] | vc_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | vc_step_x | vc_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | vc_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | vc_step_y | vc_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | vc_offset_first_element_in_bytes | The offset of the first element in the destination image |
[in] | sensitivity | Sensitivity threshold k from the Harris-Stephens equation |
[in] | strength_thresh | Minimum threshold with which to eliminate Harris Corner scores |
[in] | pow4_normalization_factor | Normalization factor to apply harris score |
Definition at line 341 of file harris_corners.cl.
References CONVERT_TO_IMAGE_STRUCT, harris_score_1x7(), and Image::ptr.