That depends on how your image is formatted - do you know what format the image is in, or is it just a continuous array of data? If so, your image should have a corresponding header file which will tell you the physical properties of the image or if you have access to the array as the native formatted array for Matlab (i.e. can be loaded into the workspace), just use the size function.
Dave
Dave