Re: Get the pixel Size
Posted by
BenDehap on
Feb 01, 2016; 1:45pm
URL: http://imagej.273.s1.nabble.com/Get-the-pixel-Size-tp5015501p5015510.html
Hello Michael,
First thank you for your answer, someone give me a simple way to resolve my problem as following :
getPixelSize (unit, pixelWidth, pixelHeight);
if (unit=="microns"){
x=pixelWidth;}
else exit ("No calibration");
but i seen that the method you propose is widely used on forums.
Would it be possible to show me an example of code using "x" for the value of the pixel witdh and "image1" for the name of my image.
I don't know if you have the time to do it, but i'm a coding beginner and i feell a bit lost.
Thanks anyway.
Ben