const int normType = GET_PARAM(2);
cv::Mat src(size, depth);
- declare.in(src, WARMUP_RNG);
+ if (depth == CV_8U)
+ cv::randu(src, 0, 254);
+ else
+ declare.in(src, WARMUP_RNG);
if (PERF_RUN_GPU())
{
const int depth = GET_PARAM(1);
cv::Mat src(size, depth);
- declare.in(src, WARMUP_RNG);
+ if (depth == CV_8U)
+ cv::randu(src, 0, 254);
+ else
+ declare.in(src, WARMUP_RNG);
if (PERF_RUN_GPU())
{
const int depth = GET_PARAM(1);
cv::Mat src(size, depth);
- declare.in(src, WARMUP_RNG);
+ if (depth == CV_8U)
+ cv::randu(src, 0, 254);
+ else
+ declare.in(src, WARMUP_RNG);
if (PERF_RUN_GPU())
{