Login  Register

Re: Retrieving a string from the results table

Posted by Michael Schmid on Apr 26, 2016; 4:27pm
URL: http://imagej.273.s1.nabble.com/menus-are-off-the-screen-tp5016127p5016232.html

Hi Richard,

it works well for me, both for numeric as well as for text values:
ImageJ 1.50i; Java 1.6.0_65 [64-bit]; Mac OS X 10.6.8

Sample macro (output goes to 'Log'):

run("Set Measurements...", "area mean display redirect=None decimal=3");
run("Blobs (25K)");
setAutoThreshold("Default");
run("Analyze Particles...", "display exclude include");
getResultString("Label",0);
getResultString("Area",0);

Note that the column names are case-sensitive; you get 'null' if the
label is wrong.

Michael
________________________________________________________________
On 2016-04-26 17:49, MORT Richard wrote:
> Hi All,
>
> I'm on IJ 1.50i and cannot retrieve strings form the results table with either getResult("Name", i) or getResultString("Name", i). i thought this was a long resolved bug? Any work arounds?
>
> Best
> R
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html