Skip to content

Instantly share code, notes, and snippets.

@Aravind-Suresh
Created February 25, 2016 10:29
Show Gist options
  • Save Aravind-Suresh/18e78576f29bb92e741b to your computer and use it in GitHub Desktop.
Save Aravind-Suresh/18e78576f29bb92e741b to your computer and use it in GitHub Desktop.
cv-cuda-reduce-bug-fix
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