fix unnecessary memory allocation in gpu::magnitude and gpu::phase

This commit is contained in:
Vladislav Vinogradov
2010-10-26 05:44:50 +00:00
parent d0a4352eae
commit 2c39f0ee33
3 changed files with 18 additions and 16 deletions

View File

@@ -620,12 +620,12 @@ struct CV_GpuNppImagePhaseTest : public CV_GpuArithmTest
}
cv::Mat cpuRes;
cv::phase(mat1, mat2, cpuRes);
cv::phase(mat1, mat2, cpuRes, true);
GpuMat gpu1(mat1);
GpuMat gpu2(mat2);
GpuMat gpuRes;
cv::gpu::phase(gpu1, gpu2, gpuRes);
cv::gpu::phase(gpu1, gpu2, gpuRes, true);
return CheckNorm(cpuRes, gpuRes);
}