mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
509 B
27 lines
509 B
#include "perf_precomp.hpp" |
|
|
|
namespace opencv_test { namespace { |
|
using namespace perf; |
|
|
|
typedef perf::TestBaseWithParam<Size> SizePrm; |
|
|
|
PERF_TEST_P( SizePrm, LUT, |
|
testing::Values(szQVGA, szVGA, sz1080p) |
|
) |
|
{ |
|
Size sz = GetParam(); |
|
|
|
int maxValue = 255; |
|
|
|
Mat src(sz, CV_8UC1); |
|
randu(src, 0, maxValue); |
|
Mat lut(1, 256, CV_8UC1); |
|
randu(lut, 0, maxValue); |
|
Mat dst(sz, CV_8UC1); |
|
|
|
TEST_CYCLE() LUT(src, lut, dst); |
|
|
|
SANITY_CHECK(dst, 0.1); |
|
} |
|
|
|
}} // namespace
|
|
|