d=[0,0,0,0,0];
filename=uigetfile({'*.*';'*.bmp';'*.jpg';'*.jpeg';'*.gif';'*.png'},'Select Image File');
image=imread(filename);
[y,x]=size(image);
x=x/3;
for i=1:x
for j=1:y
d=cat(1,d,[i,j,impixel(image,i,j)]);
end
end
xlswrite('info.xls',d,'Image Information');
filename=uigetfile({'*.*';'*.bmp';'*.jpg';'*.jpeg';'*.gif';'*.png'},'Select Image File');
image=imread(filename);
[y,x]=size(image);
x=x/3;
for i=1:x
for j=1:y
d=cat(1,d,[i,j,impixel(image,i,j)]);
end
end
xlswrite('info.xls',d,'Image Information');
for other image format what we have to do.
ReplyDelete