From 8de92619e223225aabdca873c02f231d8e941fd1 Mon Sep 17 00:00:00 2001 From: John Richardson Date: Thu, 22 Feb 2018 14:09:31 +0000 Subject: COMPMID-585: Port OpticalFlow to new validation Change-Id: Ia36bd11ca27420d3059eea15df81b237900149ec Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125175 Tested-by: Jenkins Reviewed-by: John Richardson Reviewed-by: Anthony Barbier --- tests/Types.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tests/Types.h') diff --git a/tests/Types.h b/tests/Types.h index f6ceb13de4..c65b56c1ba 100644 --- a/tests/Types.h +++ b/tests/Types.h @@ -59,5 +59,37 @@ struct MinMaxLocationValues std::vector min_loc{}; /**< Min value location */ std::vector max_loc{}; /**< Max value location */ }; + +/** Parameters of Optical Flow algorithm. */ +struct OpticalFlowParameters +{ + OpticalFlowParameters(Termination termination, + float epsilon, + size_t num_iterations, + size_t window_dimension, + bool use_initial_estimate) + : termination{ std::move(termination) }, + epsilon{ std::move(epsilon) }, + num_iterations{ std::move(num_iterations) }, + window_dimension{ std::move(window_dimension) }, + use_initial_estimate{ std::move(use_initial_estimate) } + { + } + + Termination termination; + float epsilon; + size_t num_iterations; + size_t window_dimension; + bool use_initial_estimate; +}; + +/** Internal keypoint class for Lucas-Kanade Optical Flow */ +struct InternalKeyPoint +{ + float x{ 0.f }; /**< x coordinate of the keypoint */ + float y{ 0.f }; /**< y coordinate of the keypoint */ + bool tracking_status{ false }; /**< the tracking status of the keypoint */ +}; + } // namespace arm_compute #endif /* __ARM_COMPUTE_TEST_TYPES_H__ */ -- cgit v1.2.1