21.02
|
Interface for the Lucas-Kanade tracker kernel. More...
#include <NELKTrackerKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
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) |
Initialise the kernel input and output. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from IKernel | |
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 44 of file NELKTrackerKernel.h.
Default constructor.
Referenced by NELKTrackerKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by NELKTrackerKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Referenced by NELKTrackerKernel::name().
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 | ||
) |
Initialise the kernel input and output.
[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 |
Referenced by NELKTrackerKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 47 of file NELKTrackerKernel.h.
References NELKTrackerKernel::border_size(), NELKTrackerKernel::configure(), arm_compute::mlgo::parser::end(), arm_compute::quantization::epsilon, arm_compute::test::validation::info, GemmTuner::level, NELKTrackerKernel::NELKTrackerKernel(), NELKTrackerKernel::operator=(), NELKTrackerKernel::run(), enable_tracing::start, IKernel::window(), and NELKTrackerKernel::~NELKTrackerKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NELKTrackerKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Referenced by NELKTrackerKernel::name().