Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How can I find the pixel size?

Asked by Tomas on 28 Nov 2012

Hello, How can I find the pixel size in an image with matlab? thanks

0 Comments

Tomas

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 28 Nov 2012

It is not possible to find the pixel size without additional information.

Q: In the movie Star Wars, how large is the Imperial Battle Cruiser?

A: About 3 feet long. It just looks huge because of the camera angles and very very careful use of perspective.

If you have DICOM images it is often possible (but not always) to find the pixel size information in the DICOM headers. Some scientific devices put sufficient information into JPEG or TIFF headers, but this is not common and tends to be wrong.

If you have an object of known size in the image, such as a ruler, then it may be possible to calculate the pixel size.

0 Comments

Walter Roberson

Contact us