24 #ifndef ARM_COMPUTE_LKTRACKERKERNEL_H 25 #define ARM_COMPUTE_LKTRACKERKERNEL_H 47 const char *
name()
const override 49 return "NELKTrackerKernel";
87 Termination termination,
bool use_initial_estimate,
float epsilon,
unsigned int num_iterations,
size_t window_dimension,
88 size_t level,
size_t num_levels,
float pyramid_scale);
100 void init_keypoints(
int start,
int end);
109 std::tuple<int, int, int> compute_spatial_gradient_matrix(
const NELKInternalKeypoint &keypoint, int32_t *bilinear_ix, int32_t *bilinear_iy);
131 bool _use_initial_estimate;
132 float _pyramid_scale;
134 unsigned int _num_iterations;
135 int _window_dimension;
137 unsigned int _num_levels;
Internal keypoint class for Lucas-Kanade Optical Flow.
const Window & window() const
The maximum window the kernel can be executed on.
Container for 2D border size.
const char * name() const override
Name of the kernel.
Common interface for all kernels implemented in C++.
NELKTrackerKernel & operator=(const NELKTrackerKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
~NELKTrackerKernel()=default
Default destructor.
BorderSize border_size() const override
The size of the border for that kernel.
void end(TokenStream &in, bool &valid)
Termination
Termination criteria.
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.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
Interface for the Lucas-Kanade tracker kernel.
Container for valid region of a window.
NELKTrackerKernel()
Default constructor.
Describe a multidimensional execution window.