trouble converting OpenCV implementation to Arrayfire implementaion

11 views
Skip to first unread message

Vanishree JE

unread,
Aug 3, 2025, 9:21:48 PMAug 3
to ArrayFire Users
Hello,

I have this openCV implementation for calculating normalized cross correlation and it works fine with peak correlation value of 0.99. but an alternative implementaion in arrayfile is producing peak correlation as 0. not sure where am I doing wrong. I am attaching both code. 

Basically the program takes any image, creates reference image and shifts the reference image by few x and y co-ordinates and created target image. It passes both of these images for computing cross correlation. but its not working in Arrayfire.

cameraman.tif
nxcorr-openCV.cpp
nxcorr-c9.cpp.txt
Reply all
Reply to author
Forward
0 new messages