Interface for the Lucas-Kanade tracker kernel.
More...
#include <NELKTrackerKernel.h>
|
| NELKTrackerKernel () |
| Default constructor. More...
|
|
| NELKTrackerKernel (const NELKTrackerKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers) More...
|
|
NELKTrackerKernel & | operator= (const NELKTrackerKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers) More...
|
|
| NELKTrackerKernel (NELKTrackerKernel &&)=default |
| Allow instances of this class to be moved. More...
|
|
NELKTrackerKernel & | operator= (NELKTrackerKernel &&)=default |
| Allow instances of this class to be moved. More...
|
|
| ~NELKTrackerKernel ()=default |
| Default destructor. More...
|
|
void | configure (const ITensor *input_old, const ITensor *input_new, const ITensor *old_scharr_gx, const ITensor *old_scharr_gy, const IKeyPointArray *old_points, const IKeyPointArray *new_points_estimates, IKeyPointArray *new_points, INELKInternalKeypointArray *old_points_internal, INELKInternalKeypointArray *new_points_internal, Termination termination, bool use_initial_estimate, float epsilon, unsigned int num_iterations, size_t window_dimension, size_t level, size_t num_levels, float pyramid_scale, int32_t border_offset) |
| Initialise the kernel input and output. More...
|
|
void | run (const Window &window) override |
| Execute the kernel on the passed window. More...
|
|
BorderSize | border_size () const override |
| The size of the border for that kernel. More...
|
|
virtual | ~ICPPKernel ()=default |
| Default destructor. More...
|
|
| IKernel () |
| Constructor. More...
|
|
virtual | ~IKernel ()=default |
| Destructor. More...
|
|
virtual bool | is_parallelisable () const |
| Indicates whether or not the kernel is parallelisable. More...
|
|
const Window & | window () const |
| The maximum window the kernel can be executed on. More...
|
|
Interface for the Lucas-Kanade tracker kernel.
Definition at line 51 of file NELKTrackerKernel.h.
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
The size of the border for that kernel.
- Returns
- The width in number of elements of the border.
Reimplemented from IKernel.
void configure |
( |
const ITensor * |
input_old, |
|
|
const ITensor * |
input_new, |
|
|
const ITensor * |
old_scharr_gx, |
|
|
const ITensor * |
old_scharr_gy, |
|
|
const IKeyPointArray * |
old_points, |
|
|
const IKeyPointArray * |
new_points_estimates, |
|
|
IKeyPointArray * |
new_points, |
|
|
INELKInternalKeypointArray * |
old_points_internal, |
|
|
INELKInternalKeypointArray * |
new_points_internal, |
|
|
Termination |
termination, |
|
|
bool |
use_initial_estimate, |
|
|
float |
epsilon, |
|
|
unsigned int |
num_iterations, |
|
|
size_t |
window_dimension, |
|
|
size_t |
level, |
|
|
size_t |
num_levels, |
|
|
float |
pyramid_scale, |
|
|
int32_t |
border_offset |
|
) |
| |
Initialise the kernel input and output.
- Parameters
-
[in] | input_old | Pointer to the input old tensor. Data type supported: U8 |
[in] | input_new | Pointer to the input new tensor. Data type supported. U8 |
[in] | old_scharr_gx | Pointer to the input scharr X tensor. Data type supported: S16 |
[in] | old_scharr_gy | Pointer to the input scharr Y tensor. Data type supported: S16 |
[in] | old_points | Pointer to the IKeyPointArray storing old key points |
[in] | new_points_estimates | Pointer to the IKeyPointArray storing new estimates key points |
[out] | new_points | Pointer to the IKeyPointArray storing new key points |
[in,out] | old_points_internal | Pointer to the array of NELKInternalKeypoint for old points |
[out] | new_points_internal | Pointer to the array of NELKInternalKeypoint for new points |
[in] | termination | The criteria to terminate the search of each keypoint. |
[in] | use_initial_estimate | The flag to indicate whether the initial estimated position should be used |
[in] | epsilon | The error for terminating the algorithm |
[in] | num_iterations | The maximum number of iterations before terminate the algorithm |
[in] | window_dimension | The size of the window on which to perform the algorithm |
[in] | level | The pyramid level |
[in] | num_levels | The number of pyramid levels |
[in] | pyramid_scale | Scale factor used for generating the pyramid |
[in] | border_offset | The offset used to define the boundary of the tracked pixels in different border modes |
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
void run |
( |
const Window & |
window | ) |
|
|
overridevirtual |
Execute the kernel on the passed window.
- Warning
- If is_parallelisable() returns false then the passed window must be equal to window()
- Note
- The window has to be a region within the window returned by the window() method
-
The width of the window has to be a multiple of num_elems_processed_per_iteration().
- Parameters
-
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
Implements ICPPKernel.
The documentation for this class was generated from the following file: