21.02
|
Basic function to execute optical flow. More...
#include <NEOpticalFlow.h>
Public Member Functions | |
NEOpticalFlow (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
NEOpticalFlow (const NEOpticalFlow &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEOpticalFlow & | operator= (const NEOpticalFlow &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
~NEOpticalFlow () | |
Default destructor. More... | |
void | configure (const Pyramid *old_pyramid, const Pyramid *new_pyramid, const IKeyPointArray *old_points, const IKeyPointArray *new_points_estimates, IKeyPointArray *new_points, Termination termination, float epsilon, unsigned int num_iterations, size_t window_dimension, bool use_initial_estimate, BorderMode border_mode, uint8_t constant_border_value=0) |
Initialise the function input and output. 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 optical flow.
This function calls the following Neon kernels and functions:
Definition at line 57 of file NEOpticalFlow.h.
NEOpticalFlow | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor.
[in] | memory_manager | (Optional) Memory manager. |
Definition at line 42 of file NEOpticalFlow.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default destructor.
void configure | ( | const Pyramid * | old_pyramid, |
const Pyramid * | new_pyramid, | ||
const IKeyPointArray * | old_points, | ||
const IKeyPointArray * | new_points_estimates, | ||
IKeyPointArray * | new_points, | ||
Termination | termination, | ||
float | epsilon, | ||
unsigned int | num_iterations, | ||
size_t | window_dimension, | ||
bool | use_initial_estimate, | ||
BorderMode | border_mode, | ||
uint8_t | constant_border_value = 0 |
||
) |
Initialise the function input and output.
[in] | old_pyramid | Pointer to the pyramid for the old tensor. Data type supported U8 |
[in] | new_pyramid | Pointer to the pyramid for the new tensor. Data type supported U8 |
[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] | termination | The criteria to terminate the search of each keypoint. |
[in] | epsilon | The error for terminating the algorithm |
[in] | num_iterations | The maximum number of iterations before terminate the alogrithm |
[in] | window_dimension | The size of the window on which to perform the algorithm |
[in] | use_initial_estimate | The flag to indicate whether the initial estimated position should be used |
[in] | border_mode | The border mode applied at scharr kernel stage |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT |
Definition at line 57 of file NEOpticalFlow.cpp.
References ARM_COMPUTE_ERROR_ON, ITensorInfo::dimension(), Pyramid::get_pyramid_level(), PyramidInfo::height(), ITensor::info(), Pyramid::info(), MemoryGroup::manage(), PyramidInfo::num_levels(), IArray< T >::num_values(), IArray< T >::resize(), arm_compute::S16, PyramidInfo::scale(), and PyramidInfo::width().
|
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 128 of file NEOpticalFlow.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, Window::DimX, Scheduler::get(), GemmTuner::level, and IScheduler::schedule().