diff options
author | John Richardson <john.richardson@arm.com> | 2017-09-05 11:21:56 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | f89a49f7bdd8d03400060488596c8757745e19cf (patch) | |
tree | 7e98eb703794e2bce9b9f2fbcbfc9c29714cf8fe /tests/validation_old/Validation.h | |
parent | f3aeee133c1c9c98c6828e935cf4f9801fbda9e1 (diff) | |
download | ComputeLibrary-f89a49f7bdd8d03400060488596c8757745e19cf.tar.gz |
COMPMID-503: Move MinMaxLocation to new validation
Change-Id: I2d518b3a3f15e2c4786488593dac244c1d74a0f9
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86533
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/validation_old/Validation.h')
-rw-r--r-- | tests/validation_old/Validation.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/validation_old/Validation.h b/tests/validation_old/Validation.h index 4c8752b937..f0630c1d3e 100644 --- a/tests/validation_old/Validation.h +++ b/tests/validation_old/Validation.h @@ -141,47 +141,6 @@ void validate(std::vector<unsigned int> classified_labels, std::vector<unsigned */ void validate(float target, float ref, float tolerance_abs_error = std::numeric_limits<float>::epsilon(), float tolerance_relative_error = 0.0001f); -/** Validate min max location. - * - * - All values should match - */ -template <typename T> -void validate_min_max_loc(T min, T ref_min, T max, T ref_max, - IArray<Coordinates2D> &min_loc, IArray<Coordinates2D> &ref_min_loc, IArray<Coordinates2D> &max_loc, IArray<Coordinates2D> &ref_max_loc, - uint32_t min_count, uint32_t ref_min_count, uint32_t max_count, uint32_t ref_max_count) -{ - BOOST_TEST(min == ref_min); - BOOST_TEST(max == ref_max); - - BOOST_TEST(min_count == min_loc.num_values()); - BOOST_TEST(max_count == max_loc.num_values()); - BOOST_TEST(ref_min_count == ref_min_loc.num_values()); - BOOST_TEST(ref_max_count == ref_max_loc.num_values()); - - BOOST_TEST(min_count == ref_min_count); - BOOST_TEST(max_count == ref_max_count); - - for(uint32_t i = 0; i < min_count; i++) - { - Coordinates2D *same_coords = std::find_if(ref_min_loc.buffer(), ref_min_loc.buffer() + min_count, [&min_loc, i](Coordinates2D coord) - { - return coord.x == min_loc.at(i).x && coord.y == min_loc.at(i).y; - }); - - BOOST_TEST(same_coords != ref_min_loc.buffer() + min_count); - } - - for(uint32_t i = 0; i < max_count; i++) - { - Coordinates2D *same_coords = std::find_if(ref_max_loc.buffer(), ref_max_loc.buffer() + max_count, [&max_loc, i](Coordinates2D coord) - { - return coord.x == max_loc.at(i).x && coord.y == max_loc.at(i).y; - }); - - BOOST_TEST(same_coords != ref_max_loc.buffer() + max_count); - } -} - /** Validate KeyPoint arrays. * * - All values should match |