[arrayfire] 171/408: matchTemplate fix in opencl to support indexed template images
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit aca80f8af18704feeab50f939c9ad948ed59222d
Author: pradeep <pradeep at arrayfire.com>
Date: Wed Jul 29 11:45:33 2015 -0400
matchTemplate fix in opencl to support indexed template images
---
src/backend/opencl/kernel/matchTemplate.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/opencl/kernel/matchTemplate.cl b/src/backend/opencl/kernel/matchTemplate.cl
index fae3244..c80c9ce 100644
--- a/src/backend/opencl/kernel/matchTemplate.cl
+++ b/src/backend/opencl/kernel/matchTemplate.cl
@@ -31,7 +31,7 @@ void matchTemplate(global outType * out,
const int sDim1 = sInfo.dims[1];
int winNumElems = tDim0*tDim1;
- global const inType* tptr = tmplt;
+ global const inType* tptr = tmplt + tInfo.offset;
outType tImgMean = (outType)0;
if (NEEDMEAN) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list