diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-07-30 12:01:44 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | ef915165692da33a37066dab467ba3ceade53f27 (patch) | |
tree | 51e73aff122c566b6c511206cc68ebbdeaee5c2e /tests | |
parent | c55cef103a329a4e203c929276ed02ac45820de1 (diff) | |
download | ComputeLibrary-ef915165692da33a37066dab467ba3ceade53f27.tar.gz |
COMPMID-1359: (Nightly) CLCannyEdge failures
Change-Id: I0fa02b8cc9289cfc4c89bea3f2041db938204948
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/142232
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation/Helpers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/validation/Helpers.cpp b/tests/validation/Helpers.cpp index 8832fce6f1..1044e328a1 100644 --- a/tests/validation/Helpers.cpp +++ b/tests/validation/Helpers.cpp @@ -137,12 +137,12 @@ CannyEdgeParameters canny_edge_parameters() std::mt19937 gen(library->seed()); std::uniform_int_distribution<uint8_t> int_dist(0, 255); - std::uniform_int_distribution<uint8_t> threshold_dist(1, 255); + std::uniform_int_distribution<uint8_t> threshold_dist(2, 255); params.constant_border_value = int_dist(gen); - params.upper_thresh = threshold_dist(gen); // upper_threshold >= 1 + params.upper_thresh = threshold_dist(gen); // upper_threshold >= 2 threshold_dist = std::uniform_int_distribution<uint8_t>(1, params.upper_thresh - 1); - params.lower_thresh = threshold_dist(gen); + params.lower_thresh = threshold_dist(gen); // lower_threshold >= 1 && lower_threshold < upper_threshold return params; } |