I am working on a project where I need to find image resolution for an image or any relation between image height and width with the resolution of image.
When we right click on an image and select properties->details, we have the resolution information.
How can we extract that information in matlab?
Is that information does not depend on image properties because somewhere I read image has only pixel information, ppi or dpi depends on printer, sensors.
You can use
imfinfomatlab function, which returns a structure whose fields contain information about the image.For example:
In your case, you probably want to get:
Horizontal resolutionandVertical resolution. So use:For more information: http://www.mathworks.com/help/matlab/ref/imfinfo.html