Created
February 25, 2016 10:29
-
-
Save Aravind-Suresh/18e78576f29bb92e741b to your computer and use it in GitHub Desktop.
cv-cuda-reduce-bug-fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CUDA_TEST_P(Reduce, Cols) | |
{ | |
cv::Mat src = randomMat(size, type); | |
cv::cuda::GpuMat dst = createMat(cv::Size(1, src.rows), dst_type, useRoi); | |
cv::cuda::reduce(loadMat(src, useRoi), dst, 1, reduceOp, dst_depth); | |
cv::Mat dst_gold; | |
cv::reduce(src, dst_gold, 1, reduceOp, dst_depth); | |
EXPECT_MAT_NEAR(dst_gold, dst, dst_depth < CV_32F ? 0.0 : 0.02); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment