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)
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.