switched to Input/Output Array in transpose/flip operations

This commit is contained in:
Vladislav Vinogradov
2013-04-25 16:09:51 +04:00
parent 3d8ca010b7
commit 0c50d0821f
4 changed files with 23 additions and 17 deletions

View File

@@ -130,12 +130,12 @@ void Worker::operator()(int device_id) const
rng.fill(src, RNG::UNIFORM, 0, 1);
// CPU works
transpose(src, dst);
cv::transpose(src, dst);
// GPU works
GpuMat d_src(src);
GpuMat d_dst;
transpose(d_src, d_dst);
gpu::transpose(d_src, d_dst);
// Check results
bool passed = norm(dst - Mat(d_dst), NORM_INF) < 1e-3;