Login  Register

Re: adding real axes to pixel format, possible addition to ImageJ

Posted by Zummy on Jan 11, 2006; 9:40pm
URL: http://imagej.273.s1.nabble.com/adding-real-axes-to-pixel-format-possible-addition-to-ImageJ-tp3704097p3704101.html

I will look at the code to see how to do this from Java (we will launch ImageJ
from a Java applet).  This sounds very promising.  We have a lot more
requirements
than that, but if we can get basic floating point scales on the x and y axes,
that will go quite a distance towards meeting our goals.

I still need to find out the requirements for the axes, whether they will
be spaced evenly or not.

John

At 01:45 AM 1/11/2006, Gabriel Landini wrote:

>On Tuesday 10 January 2006 22:54, John Carlson wrote:
> > What do you mean by calibrated image?  How do you do that in ImageJ?
>
>Image>Properties and then you put the value of the pixel size in your real
>units. You should have calculated beforehand what the calibration values
>should be.
>If you point to any pixels, you get the calibrated coordinates in the
>statusbar (instead of in pixels). This will be offset to 0,0, so you will
>only need to add/subtract any offset you need. The calibration is saved in
>the tiff format. You could store the offsets as metadata in the tiff tags and
>make a macro that reads them and converts to your chosen units in the
>statusbar or to a new window.
>
> > I would need to query the x and y coordinates for their values that were
> > obtained from the file format we are using.
>
>But the image is made of discrete units, so you will not be able to get more
>resolution than the image that holds the data. The coordinates would be
>transformed only.
>
>If such modification to the calibration was to be made, then one
>suggestion is
>to have a dialog that asks for the coordinates (in calibrated units) of the
>top left image pixel (0,0) and that one of the lower bottom pixel
>(getWidth()-1, getHeight()-1).
>As I said, you could incorporate these calculations in your own macro or
>plugin and store them as metadata.
>
>I hope it helps.
>
>Gabriel