Hello All, This is my sample code:
img=imread('C:\Users\nitin\Documents\MATLAB\t8.png');img=rgb2gray(img);[i,j]=size(img);[x,y]=find(img);for p=1:i*i x1(p)=mod(32+(19*p),i);endfor q=1:j*j y1(q)=mod(16+(13*q),j);endx1=x1';y1=y1';
After executing the above piece of code, I got x1(64*1) 1D array and y1(64*1) 1D array as new coordinates. Now I want to convert x1 and y1 into (8*8) matrix with new coordinates i.e. (x1,y1). Please help.
Best Answer