Re: Random ROI / results selection for measurement
Posted by Ruszkai Ákos on Feb 14, 2010; 10:35pm
URL: http://imagej.273.s1.nabble.com/Random-ROI-results-selection-for-measurement-tp3689378p3689382.html
Hello
Bumping up the thread, as I've discovered an error:
I'm using the macro sent by Tiago (thank you very much again), but there's a
difference between it's output log and ImageJ's results window:
Log says:
1/1 : Measured ROI: 168
ImageJ returns:
1 4f30perc:0008-0169-1039:DSCN9902
The two ROIs are not the same, the log always gives back a ROI number lower
by one. Easy to fix though:
I have to change row 16 of the code:
print(count++ +"/"+sample+" : Measured ROI: "+rois[i]);
to
print(count++ +"/"+sample+" : Measured ROI: "+rois[i]+1);
and voila! the two numbers are identical. I've double checked it, it's the
macro that prints out the wrong number, because if I measure the output ROI
manually, I get the same results as the results window returns. I know this
is only a half solution, as it only masks the problem, not really fixes it
(and tbh in science, this is unacceptable), but at least it gives back a
correct value.
Regards,
Ákos