Login  Register

Re: Getting the scale

Posted by Cspr on Apr 19, 2010; 10:27pm
URL: http://imagej.273.s1.nabble.com/Getting-the-scale-tp3686642p3686647.html

Thank you for your suggestion.

I might have mislead you slightly in my formulation of the question. See what I actually want is the scale or the ratio of pixels to microns. Using the cal.pixelwidth and similar calls simply returns 1.0 as the image IS in pixels. However I want that information in microns, hence I need to know the number of microns to pixels or vice-versa.

When I open an image in ImageJ Fiji and run Analyze -> Set Scale it gives me a Distance in Pixels and it is THAT value I would so dearly like, but apparently no call within ImageJ allows me to extract either

A) The microns of the image shown in the header of the image as e.g. 36.95x36.95 microns (512x512); 8-bit; 256K - i.e.
B) The Distance in Pixels

So from Java I would like to either get the Distance in Pixels or the micron number (in the above case that would be 36.95).

I'm honestly baffled why it is so difficult to get that information.