以前我用Matlab实现矩阵arnold置乱是这样的:for t=1:10for a=1:256for b=1:256h(mod(a+b,256)+1, mod(a+2*b,256)+1)=j(a,b);endendj=h;end相当于循环把一个矩阵内容赋值给新矩阵的不同位置上,可是现在我需要用opencv中cvMat型矩阵实现置乱该如何写呢?求教具体代码……