imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 337 forks source link

getValue() not returning intensity measures of line selections? #265

Open jo-fuchs opened 4 years ago

jo-fuchs commented 4 years ago

Hi,

For further use in a macro I wanted to store the mean-intensity in a variable. I noticed an unexpected behaviour of getValue() when reading intensity values from a line selection: intens = getValue("Mean"); len = getValue("Length"); print(intens); print(len);

While the length is correctly read from the line, the mean intensity is read from the full image. The same happens for the other intensity measures (Median, Mode, Min, Max).

When I select an area instead of a line, the intensity measures are returned from the selection.

Is this intentional or just not yet implemented in my ImageJ-Version? (ImageJ-Version 1.53c, Fiji updater does not want to update anything)

Thanks, Joachim

PS: A workaround for this issue has already been described by Christopher Schmied here via measuring and accessing the Results-Table but I thought, I'd mention it as a potential enhancement here.