How to create a mat range like MATLAB matrix

asked 2015-07-11 03:24:58 -0600

updated 2015-07-11 04:59:59 -0600

I'm very new to OpenCV C++(started using it two days ago), I want to create a manual matrix in opencv like this matlab code! can anyone help me?

for i=5:imCopyW-5  
  for j= 15:imCopyH-10  
        tmpSum = sum(edgeImg(j-10 : j+10, i));  
        if (tmpSum>=20)  
            VotingMap(j-10 : j+10, i-5 : i+5) = 0;   
            outlierBinary(j-10 : j+10, i-5 : i+5) = 0;

Thanks.

edit retag flag offensive close merge delete