The default image that is built in to the image function is 64*64. Other example images (like cameraman.tif) are 256*256.
You can check the image size just like every other array:
if size(IM,1)==256 && size(IM,2)==256
disp('256*256 image')
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!