From 2a626e1a2da5e05a6005050970c49b8896fb3a7f Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 9 Apr 2012 14:51:08 +0000 Subject: [PATCH] fixed input array initialization in ArithmMaskUninitialized test (thanks to Alexander!) --- modules/core/test/test_arithm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/core/test/test_arithm.cpp b/modules/core/test/test_arithm.cpp index 2d55796e1..9f8ccb2e5 100644 --- a/modules/core/test/test_arithm.cpp +++ b/modules/core/test/test_arithm.cpp @@ -1437,6 +1437,9 @@ protected: Mat mask1; Mat c, d; + rng.fill(a, RNG::UNIFORM, 0, 100); + rng.fill(b, RNG::UNIFORM, 0, 100); + // [-2,2) range means that the each generated random number // will be one of -2, -1, 0, 1. Saturated to [0,255], it will become // 0, 0, 0, 1 => the mask will be filled by ~25%.