Hi all,
I am investigating person 's variability to set the threshold, and I would like to have a column in the Measurement to designate the operator's name such as "John" and "Tom". However, when I look at setResult function, it seems that it only accept numerical data, no string. Could we have string value in the result window such as "Label"? Zhengyu Dr. Zhengyu Pang Biochemistry and Biological Engineering Laboratory GE Global Research Biosciences Global Technology Organization T +1 518 387 4015 M +1 919 724 7116 F +1 518 387 7765 [hidden email] One Research Circle Niskayuna, NY 12309 GE imagination at work |
Dear Dr. Pang,
how do you wish to set the row name? By means of macro? If so, you may have a look at the manual "built-in macro functions" at <http://rsb.info.nih.gov/ij/developer/macro/functions.html> There you will find: Call setResult("Label", row, string) to set the row label. >Hi all, > >I am investigating person 's variability to set the threshold, and I >would like to have a column in the Measurement to designate the >operator's name such as "John" and "Tom". However, when I look at >setResult function, it seems that it only accept numerical data, no >string. > >Could we have string value in the result window such as "Label"? > >Zhengyu > > >Dr. Zhengyu Pang > >Biochemistry and Biological Engineering Laboratory > >GE Global Research > >Biosciences Global Technology Organization > >T +1 518 387 4015 > >M +1 919 724 7116 > >F +1 518 387 7765 > >[hidden email] > >One Research Circle > >Niskayuna, NY 12309 > >GE imagination at work HTH -- Herbie ------------------------ <http://www.gluender.de> |
Dear all,
Thanks for the responses. I think the Label is reserved for image file name. If I use setResult("Label", row, string) function, is it going to replace the content (image name) in the original Label column. If this is the case, I do not want to do it, as I still need the column to tell me which image I am processing. I want to do something like setResult("Operator", row, string), but I found ImageJ want the string to be a numeric. Thanks, Zhengyu Dr. Zhengyu Pang Biochemistry and Biological Engineering Laboratory General Electric Company Global Research GE Imagination at work -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Gluender Sent: Monday, August 24, 2009 5:06 PM To: [hidden email] Subject: Re: string data for the Measurement Dear Dr. Pang, how do you wish to set the row name? By means of macro? If so, you may have a look at the manual "built-in macro functions" at <http://rsb.info.nih.gov/ij/developer/macro/functions.html> There you will find: Call setResult("Label", row, string) to set the row label. >Hi all, > >I am investigating person 's variability to set the threshold, and I >would like to have a column in the Measurement to designate the >operator's name such as "John" and "Tom". However, when I look at >setResult function, it seems that it only accept numerical data, no >string. > >Could we have string value in the result window such as "Label"? > >Zhengyu > > >Dr. Zhengyu Pang > >Biochemistry and Biological Engineering Laboratory > >GE Global Research > >Biosciences Global Technology Organization > >T +1 518 387 4015 > >M +1 919 724 7116 > >F +1 518 387 7765 > >[hidden email] > >One Research Circle > >Niskayuna, NY 12309 > >GE imagination at work HTH -- Herbie ------------------------ <http://www.gluender.de> |
Dear Dr. Pang,
do you need an image file name in your table? How is the image file name entered to the result table? >Dear all, > >Thanks for the responses. I think the Label is reserved for image file >name. If I use setResult("Label", row, string) function, is it going to >replace the content (image name) in the original Label column. If you already enter the image file name why not append the operator name to it? >If this is the case, I do not want to do it, as I still need the >column to tell me which image I am processing. I want to do >something like >setResult("Operator", row, string), but I found ImageJ want the string >to be a numeric. > >Thanks, > >Zhengyu > > > > >Dr. Zhengyu Pang >Biochemistry and Biological Engineering Laboratory >General Electric Company Global Research > >GE Imagination at work > >-----Original Message----- >From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of >Gluender >Sent: Monday, August 24, 2009 5:06 PM >To: [hidden email] >Subject: Re: string data for the Measurement > >Dear Dr. Pang, > >how do you wish to set the row name? By means of macro? > >If so, you may have a look at the manual "built-in macro functions" at > ><http://rsb.info.nih.gov/ij/developer/macro/functions.html> > >There you will find: > >Call setResult("Label", row, string) to set the row label. > >>Hi all, >> >>I am investigating person 's variability to set the threshold, and I >>would like to have a column in the Measurement to designate the >>operator's name such as "John" and "Tom". However, when I look at >>setResult function, it seems that it only accept numerical data, no >>string. >> >>Could we have string value in the result window such as "Label"? >> > >Zhengyu Best -- Herbie ------------------------ <http://www.gluender.de> |
Dear Gluender, do you need an image file name in your table? >>>YES, I need image file name in my table. How is the image file name entered to the result table? >>>I did not specify file name in the result table. I just specify in the "Set Measurements" to Display Label. >>> How do I get both image label and some other notation for the image. Thanks, Zhengyu >Dear all, > >Thanks for the responses. I think the Label is reserved for image file >name. If I use setResult("Label", row, string) function, is it going >to replace the content (image name) in the original Label column. If you already enter the image file name why not append the operator name to it? >If this is the case, I do not want to do it, as I still need the column >to tell me which image I am processing. I want to do something like >setResult("Operator", row, string), but I found ImageJ want the string >to be a numeric. > >Thanks, > >Zhengyu > > > > >Dr. Zhengyu Pang >Biochemistry and Biological Engineering Laboratory General Electric >Company Global Research > >GE Imagination at work > >-----Original Message----- >From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of >Gluender >Sent: Monday, August 24, 2009 5:06 PM >To: [hidden email] >Subject: Re: string data for the Measurement > >Dear Dr. Pang, > >how do you wish to set the row name? By means of macro? > >If so, you may have a look at the manual "built-in macro functions" at > ><http://rsb.info.nih.gov/ij/developer/macro/functions.html> > >There you will find: > >Call setResult("Label", row, string) to set the row label. > >>Hi all, >> >>I am investigating person 's variability to set the threshold, and I >>would like to have a column in the Measurement to designate the >>operator's name such as "John" and "Tom". However, when I look at >>setResult function, it seems that it only accept numerical data, no >>string. >> >>Could we have string value in the result window such as "Label"? >> > >Zhengyu Best -- Herbie ------------------------ <http://www.gluender.de> |
Dear Dr. Pang,
again, how do expect to enter the operator name? If you like to enter it by means of a macro, you may append it to the image file name. Without a macro, you may rename the image file, i.e. you may append the operator name to the image file name. If both isn't an option for you, then I don't see a solution yet. >Dear Gluender, > >do you need an image file name in your table? > > >>>YES, I need image file name in my table. > >How is the image file name entered to the result table? >>>>I did not specify file name in the result table. I just specify in >the "Set Measurements" to Display Label. > >>>> How do I get both image label and some other notation for the image. > >Thanks, > >Zhengyu > > > >>Dear all, >> >>Thanks for the responses. I think the Label is reserved for image file >>name. If I use setResult("Label", row, string) function, is it going >>to replace the content (image name) in the original Label column. > >If you already enter the image file name why not append the operator >name to it? > >>If this is the case, I do not want to do it, as I still need the column > >>to tell me which image I am processing. I want to do something like >>setResult("Operator", row, string), but I found ImageJ want the string >>to be a numeric. >> >>Thanks, >> >>Zhengyu >> >> >> >> >>Dr. Zhengyu Pang >>Biochemistry and Biological Engineering Laboratory General Electric >>Company Global Research >> >>GE Imagination at work >> >>-----Original Message----- >>From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of >>Gluender >>Sent: Monday, August 24, 2009 5:06 PM >>To: [hidden email] >>Subject: Re: string data for the Measurement >> > >Dear Dr. Pang, >> >>how do you wish to set the row name? By means of macro? >> >>If so, you may have a look at the manual "built-in macro functions" at >> >><http://rsb.info.nih.gov/ij/developer/macro/functions.html> >> >>There you will find: >> >>Call setResult("Label", row, string) to set the row label. >> >>>Hi all, >>> >>>I am investigating person 's variability to set the threshold, and I >>>would like to have a column in the Measurement to designate the >>>operator's name such as "John" and "Tom". However, when I look at >>>setResult function, it seems that it only accept numerical data, no >>>string. >>> >>>Could we have string value in the result window such as "Label"? >>> >> >Zhengyu > >Best >-- Best -- Herbie ------------------------ <http://www.gluender.de> |
In reply to this post by Pang, Zhengyu (GE Global Research)
Zhengyu,
There is no good way I know to store strings in columns other than the Label column. You could change the label to include the name by adding the following code to some place in the macro after you've performed your measurments. It assumes that you've already stored the operator name in the variabe "name". setResult("Label",nResults-1,getResultLabel(nResults-1)+"_"+name); updateResults(); Afterwards you would have to parse the cell to separate the two. Alternatively, if don't want to do parsing, use numeric IDs for your operators, and use setResults() as normal. This is probably a better method anyhow. You could assign them, or have them use something familiar, such as their telephone numbers. Justin On Mon, Aug 24, 2009 at 5:12 PM, Gluender <[hidden email]> wrote: > Dear Dr. Pang, > > again, how do expect to enter the operator name? > > If you like to enter it by means of a macro, you may append it to the image > file name. Without a macro, you may rename the image file, i.e. you may > append the operator name to the image file name. If both isn't an option for > you, then I don't see a solution yet. > > > Dear Gluender, >> >> do you need an image file name in your table? >> >> >>>YES, I need image file name in my table. >> >> How is the image file name entered to the result table? >> >>> I did not specify file name in the result table. I just specify in >>>>> >>>> the "Set Measurements" to Display Label. >> >> How do I get both image label and some other notation for the image. >>>>> >>>> >> Thanks, >> >> Zhengyu >> >> >> >> Dear all, >>> >>> Thanks for the responses. I think the Label is reserved for image file >>> name. If I use setResult("Label", row, string) function, is it going >>> to replace the content (image name) in the original Label column. >>> >> >> If you already enter the image file name why not append the operator >> name to it? >> >> If this is the case, I do not want to do it, as I still need the column >>> >> >> to tell me which image I am processing. I want to do something like >>> setResult("Operator", row, string), but I found ImageJ want the string >>> to be a numeric. >>> >>> Thanks, >>> >>> Zhengyu >>> >>> >>> >>> >>> Dr. Zhengyu Pang >>> Biochemistry and Biological Engineering Laboratory General Electric >>> Company Global Research >>> >>> GE Imagination at work >>> >>> -----Original Message----- >>> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of >>> Gluender >>> Sent: Monday, August 24, 2009 5:06 PM >>> To: [hidden email] >>> Subject: Re: string data for the Measurement >>> >>> >Dear Dr. Pang, >> >>> >>> how do you wish to set the row name? By means of macro? >>> >>> If so, you may have a look at the manual "built-in macro functions" at >>> >>> <http://rsb.info.nih.gov/ij/developer/macro/functions.html> >>> >>> There you will find: >>> >>> Call setResult("Label", row, string) to set the row label. >>> >>> Hi all, >>>> >>>> I am investigating person 's variability to set the threshold, and I >>>> would like to have a column in the Measurement to designate the >>>> operator's name such as "John" and "Tom". However, when I look at >>>> setResult function, it seems that it only accept numerical data, no >>>> string. >>>> >>>> Could we have string value in the result window such as "Label"? >>>> >>>> >Zhengyu >>> >> >> Best >> -- >> > > Best > -- > > Herbie > > ------------------------ > <http://www.gluender.de> > |
Free forum by Nabble | Edit this page |