diff options
Diffstat (limited to 'tests/Types.h')
-rw-r--r-- | tests/Types.h | 32 |
1 files changed, 32 insertions, 0 deletions
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<Coordinates2D> min_loc{}; /**< Min value location */ std::vector<Coordinates2D> 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__ */ |