diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-06-27 17:26:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | fc2817dc0436ef2d5064df0a061aafd3d324d894 (patch) | |
tree | 26dd232132dbe61d79ad627236b42438c2e3cc7b /tests/validation/Reference.h | |
parent | bbd9fb95daa08d6da67c567b40ca2cd032f7a2d3 (diff) | |
download | ComputeLibrary-fc2817dc0436ef2d5064df0a061aafd3d324d894.tar.gz |
COMPMID-424 NEON/CL Harris Corners validation tests.
Change-Id: I82d2a73f515a8d45d16b9ddb702fea51ae05c82e
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79687
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/validation/Reference.h')
-rw-r--r-- | tests/validation/Reference.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/validation/Reference.h b/tests/validation/Reference.h index 13e43d3d30..276540f68d 100644 --- a/tests/validation/Reference.h +++ b/tests/validation/Reference.h @@ -59,6 +59,21 @@ public: * @return Computed raw tensors along x and y axis. */ static std::pair<RawTensor, RawTensor> compute_reference_sobel_5x5(const TensorShape &shape, BorderMode border_mode, uint8_t constant_border_value); + /** Compute reference Harris corners. + * + * @param[in] shape Shape of input tensor + * @param[in] threshold Minimum threshold with which to eliminate Harris Corner scores (computed using the normalized Sobel kernel). + * @param[in] min_dist Radial Euclidean distance for the euclidean distance stage + * @param[in] sensitivity Sensitivity threshold k from the Harris-Stephens equation + * @param[in] gradient_size The gradient window size to use on the input. The implementation supports 3, 5, and 7 + * @param[in] block_size The block window size used to compute the Harris Corner score. The implementation supports 3, 5, and 7. + * @param[in] border_mode Border mode to use + * @param[in] constant_border_value Constant value to use for borders if border_mode is set to CONSTANT. + * + * @return Computed corners' keypoints. + */ + static KeyPointArray compute_reference_harris_corners(const TensorShape &shape, float threshold, float min_dist, float sensitivity, + int32_t gradient_size, int32_t block_size, BorderMode border_mode, uint8_t constant_border_value); /** Compute min max location. * * @param[in] shape Shape of the input tensors. |