aboutsummaryrefslogtreecommitdiff
path: root/tests/Types.h
diff options
context:
space:
mode:
authorJohn Richardson <john.richardson@arm.com>2018-02-22 14:09:31 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commit8de92619e223225aabdca873c02f231d8e941fd1 (patch)
tree6b0c7a04e58e120fc9969270cb7ba432a31e1258 /tests/Types.h
parent2abb216e1aaeefe65c8a7e6294b4735f0647c927 (diff)
downloadComputeLibrary-8de92619e223225aabdca873c02f231d8e941fd1.tar.gz
COMPMID-585: Port OpticalFlow to new validation
Change-Id: Ia36bd11ca27420d3059eea15df81b237900149ec Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125175 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: John Richardson <john.richardson@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/Types.h')
-rw-r--r--tests/Types.h32
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__ */