Posted by
Robert Baer on
Jan 11, 2006; 2:31pm
URL: http://imagej.273.s1.nabble.com/adding-real-axes-to-pixel-format-possible-addition-to-ImageJ-tp3704097p3704103.html
> Okay, I am trying another tack. How
> hard would it be to add to ImageJ an array
> on the X axis mapping from pixel X coordinates
> to a floating point numbers. So ImageJ
> would report floating point numbers for X instead
> of pixel coordinates. Similarly for the Y
> axis.
>
Perhaps I am misunderstanding your intent, but if you use Analyze | Set
Scale from the menu, you get JUST this effect. The units under the cursor
can show in any real units you want: feet, um, cm, inchs, whatever. All
you need to do is put in the real distance corresponding to some pixel
distance. You can even scale differently in the x and y direction for the
situation where you have non-square pixels.
Although .tif files let you save the information with the image, the menu
approach will work with any image, e.g. .jpg or .gif. If you want to
permenantly associate the behavior with the image, set the scale and save it
as a .tif which can be recovered the next time you analyze the same image.
Rob
____________________________
Robert W. Baer, Ph.D.
Associate Professor
Department of Physiology
A. T. Still University of Health Science
800 W. Jefferson St.
Kirksville, MO 63501-1497 USA
> ImageJ List:
>
> Seems like adding
>
> float realxcoords[NUMBER_OF_PIXELS_IN_WIDTH];
> and
> float realycoords[NUMBER_OF_PIXELS_IN_HEIGHT];
>
> would be a fairly simple addition, except
> that we need a format to support it. TIFF?
> Or pair the images with another file?
>
> I don't really want to carry around the baggage
> of a 3D tool when it isn't warranted.
>
> If this is already in ImageJ, let me know.
>
> If you zoom in you could possibly do
> some kind of interpolation of the axes. You
> would have to choose which part of the pixel
> really was the location of the floating point number.
>
> If the floating point coordinate file isn't found, then you could
> fall back to initializing the arrays to pixel coordinates.
>
> If we were to add such a feature to ImageJ, how would
> we get it integrated into the release?
>
> Does this sound like a valuable feature to people?
>
> I am thinking we could add this to the FloatProcessor, if
> we added an extra line of pixels on two perpendicular sides of
> the image, and added some kind of flag notifying the program
> to intepret these lines as real axes.
>
> What do people think?
>
> John
>