Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/distance-measurement-and-cropping-behavior-questions-tp5020756p5020762.html
Hi Michael,
(1) Plot profile: Yes, the x axis is calibrated length.
There is a small difference between the length reported by "measure" and
the length of the line section of a profile plot (corresponding to less
than one pixel):
Profile plots sample the image with a spacing of one pixel. If the
length of the line is not an integer number of pixels, the length of the
profile will still be an integer number of pixels (apart from rounding
errors).
Is it this (small) differences of profile lengths and actual line
lengths (given by 'measure') that you refer to?
If not, it would be good to have a sample image and test macro to trace
down the reason for the problem.
(2) Crop using the wrong place: Using Linux and Java 1.8, I have never
seen that (I'm working mostly with 32-bit images). Again a sample image
and test macro would help.
Michael
________________________________________________________________
On 31/05/2018 19:09, Cammer, Michael wrote:
> I was wondering whether anybody else is having odd behaviors with ImageJ 1.52d8 with Java 1.8 on Windows 7? One of them may be my fault and want to confirm; the other is something odd with the software.
>
> 1.
> When I do a line profile plot and measure a distance on it, most of the time the distance returned is incorrect.
> I thought that when the images were spatially calibrated, the plot also was supposed to return the calibrated length. Am I mistaken about this or is this a bug? What makes me puzzled is that the lengths reported are inconsistent.
>
> 2.
> When I draw a rectangle on an image and then crop, the upper left of the image is cropped instead of the ROI. The resultant image is the size of the ROI, but not the correct location.
> When I duplicate, the correct region is duplicated.
> These are 4096 x 4096 pixels 16 bit and 32bit images generated with a Talos TEM and Gatan camera. When the images are converted to RGB or 8 bit, this problem does not happen.
>
> Any help appreciated.
>
> Thank you.
>
> Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
> NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY 10016
>
[hidden email]<mailto:
[hidden email]>
http://nyulmc.org/micros http://microscopynotes.com/> Voice direct only, no text or messages: 1-914-309-3270 and 1-646-501-0567
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html