compare cv::gpu::calcHist with cv::calcHist

This commit is contained in:
Vladislav Vinogradov
2013-08-01 13:58:46 +04:00
parent 9b5d1596dc
commit c8d1fccdac
2 changed files with 21 additions and 20 deletions

View File

@@ -562,7 +562,17 @@ PERF_TEST_P(Sz, ImgProc_CalcHist,
}
else
{
FAIL_NO_CPU();
cv::Mat dst;
const int hbins = 256;
const float hranges[] = {0.0f, 256.0f};
const int histSize[] = {hbins};
const float* ranges[] = {hranges};
const int channels[] = {0};
TEST_CYCLE() cv::calcHist(&src, 1, channels, cv::Mat(), dst, 1, histSize, ranges);
CPU_SANITY_CHECK(dst);
}
}