<pre id=\"best-answer-content\" class=\"reply-text mb10\">The image is stored as matrix in Matlab.If the image is color image.
B=imread(Img);
for i=8:16
for j=8:16
C(i-7,j-15,1)=B(i,j,1);C(i-7,j-15,2)=B(i,j,2);C(i-7,j-15,3)=B(i,j,3);
end
end
The information is stored in matrix C. |