21.02
|
Basic function to execute fast corners. More...
#include <CLFastCorners.h>
Public Member Functions | |
CLFastCorners (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
CLFastCorners (const CLFastCorners &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
const CLFastCorners & | operator= (const CLFastCorners &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
~CLFastCorners () | |
Default destructor. More... | |
void | configure (const ICLImage *input, float threshold, bool nonmax_suppression, ICLKeyPointArray *corners, unsigned int *num_corners, BorderMode border_mode, uint8_t constant_border_value=0) |
Initialize the function's source, destination, conv and border_mode. More... | |
void | configure (const CLCompileContext &compile_context, const ICLImage *input, float threshold, bool nonmax_suppression, ICLKeyPointArray *corners, unsigned int *num_corners, BorderMode border_mode, uint8_t constant_border_value=0) |
Initialize the function's source, destination, conv and border_mode. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Basic function to execute fast corners.
This function calls the following CL kernels:
Definition at line 56 of file CLFastCorners.h.
CLFastCorners | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default destructor.
void configure | ( | const ICLImage * | input, |
float | threshold, | ||
bool | nonmax_suppression, | ||
ICLKeyPointArray * | corners, | ||
unsigned int * | num_corners, | ||
BorderMode | border_mode, | ||
uint8_t | constant_border_value = 0 |
||
) |
Initialize the function's source, destination, conv and border_mode.
[in] | input | Source image. Data types supported: U8. |
[in] | threshold | Threshold on difference between intensity of the central pixel and pixels on Bresenham's circle of radius 3. |
[in] | nonmax_suppression | If true, non-maximum suppression is applied to detected corners before being placed in the array. |
[out] | corners | Array of keypoints to store the results. |
[in,out] | num_corners | Record number of corners in the array |
[in] | border_mode | Strategy to use for borders. |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
Definition at line 58 of file CLFastCorners.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLImage * | input, | ||
float | threshold, | ||
bool | nonmax_suppression, | ||
ICLKeyPointArray * | corners, | ||
unsigned int * | num_corners, | ||
BorderMode | border_mode, | ||
uint8_t | constant_border_value = 0 |
||
) |
Initialize the function's source, destination, conv and border_mode.
[in] | compile_context | The compile context to be used. |
[in] | input | Source image. Data types supported: U8. |
[in] | threshold | Threshold on difference between intensity of the central pixel and pixels on Bresenham's circle of radius 3. |
[in] | nonmax_suppression | If true, non-maximum suppression is applied to detected corners before being placed in the array. |
[out] | corners | Array of keypoints to store the results. |
[in,out] | num_corners | Record number of corners in the array |
[in] | border_mode | Strategy to use for borders. |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
Definition at line 64 of file CLFastCorners.cpp.
References CLTensorAllocator::allocate(), CLTensor::allocator(), ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, CLNonMaximaSuppression3x3::configure(), CLScheduler::get(), ITensor::info(), ITensorAllocator::init(), MemoryGroup::manage(), ITensorInfo::tensor_shape(), arm_compute::U8, and arm_compute::UNDEFINED.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 105 of file CLFastCorners.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, CLTensor::cl_buffer(), CLScheduler::enqueue(), CLScheduler::get(), CLTensor::info(), IArray< T >::max_num_values(), CLScheduler::queue(), IArray< T >::resize(), ICLSimpleFunction::run(), and TensorInfo::total_size().