Login  Register

Re: I can't set the row label

Posted by Avital Steinberg on Aug 02, 2015; 8:25am
URL: http://imagej.273.s1.nabble.com/I-can-t-set-the-row-label-tp5013843p5013847.html

Hi Wayne,
Thanks - I figured it out: everything is fine unless I use the set
measurements command, which overwrites the labels.

This works well:

run("Clear Results");
setResult("Label", 0, "This is a label");
updateResults();
setResult("Label", 1, "This is a label");
updateResults();
setResult("Total counts1", 0, 6);
setResult("Total counts2", 1, 7);

But now the labels vanish:

run("Clear Results");
setResult("Label", 0, "This is a label");
updateResults();
setResult("Label", 1, "This is a label");
updateResults();
run("Set Measurements...", "mean integrated redirect=None decimal=4");
setResult("Total counts1", 0, 6);
setResult("Total counts2", 1, 7);

I don't mind, because I can do without the set measurements command, but
other people might run into this problem too.

Avital


On Sat, Aug 1, 2015 at 10:40 PM, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]> wrote:

> > On Aug 1, 2015, at 1:49 PM, Avital Steinberg <[hidden email]>
> wrote:
> >
> > Hi,
> > I'm using the latest version of ImageJ (1.50a) on a mac. I would like to
> > set a row label.
> >
> > I tried to use the following command:
> >
> > *setResult("Label", row, string)*
> >
> > *The problem is that it does absolutely nothing - it doesn't give an
> error
> > message and it doesn't set the row label. *
>
> This works for me:
>
>    run("Clear Results");
>    setResult("Label", 0, "This is a label");
>    updateResults();
>
> In ImageJ 1.47 or later, any column can contain strings. Here is an
> example:
>
>   run("Clear Results");
>   setResult("Str1", 0, "String 1");
>   setResult("Value", 0, 123);
>   setResult("Str2", 0, "String 2");
>   updateResults();
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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