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. * *Why would this be?* *Thanks,* *Avital* -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Avital,
I'm sure you've consulted the docs: "[...] With v1.47o or later, it can be a string. Call setResult("Label", row, string) to set the row label. Call updateResults() to display the updated table in the "Results" window." But did you call "updateResults()"? Best Herbie :::::::::::::::::::::::::::::::::::::::::::::: Am 01.08.15 um 19:49 schrieb Avital Steinberg: > 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. * > > > *Why would this be?* > > *Thanks,* > > *Avital* > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Herbie,
I did call "updateResults()", but it still didn't set the row labels. Thanks, Avital On Sat, Aug 1, 2015 at 9:19 PM, Herbie <[hidden email]> wrote: > Avital, > > I'm sure you've consulted the docs: > > "[...] With v1.47o or later, it can be a string. Call setResult("Label", > row, string) to set the row label. Call updateResults() to display the > updated table in the "Results" window." > > But did you call "updateResults()"? > > Best > > Herbie > > :::::::::::::::::::::::::::::::::::::::::::::: > Am 01.08.15 um 19:49 schrieb Avital Steinberg: > >> 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. * >> >> >> *Why would this be?* >> >> *Thanks,* >> >> *Avital* >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html >> >> > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Avital Steinberg
> 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 |
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 |
Free forum by Nabble | Edit this page |