According to this link and one , it is that opencv is much faster than matlab. The first link was written in March 2012, the second - a little later.
The first link states that "Programs written in OpenCV are much faster than similar programs written in Matlab." and rates Matlab: 2/10andOpenCV: 9/10
I have two Matrix float size 1024 * 1024 ( mat1 and mat2 ). I want to correlate these matrices.
In matlab
corr2(mat1,mat2);
In opencv, C ++
Mat result(1,1,CV_32F);
matchTemplate(mat1,mat2,result, CV_TM_CCOEFF_NORMED);
As far as I know, c and C ++ are at about the same speed.
So, I wonder why matlab is faster than opencv / C ++ when doing cross-correlation. Is it because I'm comparing the wrong things (although the results are the same) or is the matlab cross-correlation implementation doubling faster than the opencv implementation?
Please note that I am using Matlab 2013aand Visual Studio 2010.
Thank,
source
share