new implementation of gpu debayer

* without border extrapolation
* with aligned write
* process 4 pixels per thread in 8u case
This commit is contained in:
Vladislav Vinogradov
2012-08-06 10:58:11 +04:00
parent 5ce896d9ee
commit 8624d18ca5
4 changed files with 273 additions and 144 deletions

View File

@@ -1148,6 +1148,9 @@ GPU_PERF_TEST(CvtColor, cv::gpu::DeviceInfo, cv::Size, MatDepth, CvtColorInfo)
cv::gpu::GpuMat src(src_host);
cv::gpu::GpuMat dst;
if (info.code >= cv::COLOR_BayerBG2BGR && info.code <= cv::COLOR_BayerGR2BGR)
info.dcn = 4;
cv::gpu::cvtColor(src, dst, info.code, info.dcn);
TEST_CYCLE()