Hello
I'm working on an customized version of Batch Measure. I would like to put the filename in the first row of the Result table. However the SetResult command does not accept strings as a value. The command Measure results in a list with filenames in the Label column. Is there a way to put the active filename in an extra column in the Result table? Thanks in advance Philipp Merkelbach ________________________________ Rodenstock GmbH, Amtsgericht Muenchen, HRB 153815, USt-ID-Nr. DE 238022927 Geschaeftsfuehrer: Oliver Kastalio, Dr. Michael Kleer, Sven Kossyk Aufsichtsratsvorsitzender: Peter Koerfer-Schuen |
Good day!
So, what's wrong with the "Label"-column? You may also try: print( "[Results]", "myFileName" ); Best Herbie _____________________________ >Hello > >I'm working on an customized version of Batch Measure. > >I would like to put the filename in the first row of the Result >table. However the SetResult command does not accept strings as a >value. The command Measure results in a list with filenames in the >Label column. > >Is there a way to put the active filename in an extra column in the >Result table? > >Thanks in advance >Philipp Merkelbach >________________________________ > >Rodenstock GmbH, Amtsgericht Muenchen, HRB 153815, USt-ID-Nr. DE 238022927 >Geschaeftsfuehrer: Oliver Kastalio, Dr. Michael Kleer, Sven Kossyk >Aufsichtsratsvorsitzender: Peter Koerfer-Schuen |
Hello,
thank you for the help. I was not aware of the fact that a coloumn with the name "Label" accepts strings. Therefore my problem is solved. By the way, thank you to the developers, fantastic program! Cheers Philipp ________________________________________ Von: ImageJ Interest Group [[hidden email]]" im Auftrag von "Herbie [[hidden email]] Gesendet: Freitag, 16. März 2012 00:04 Bis: [hidden email] Betreff: Re: String in SetResult Good day! So, what's wrong with the "Label"-column? You may also try: print( "[Results]", "myFileName" ); Best Herbie _____________________________ >Hello > >I'm working on an customized version of Batch Measure. > >I would like to put the filename in the first row of the Result >table. However the SetResult command does not accept strings as a >value. The command Measure results in a list with filenames in the >Label column. > >Is there a way to put the active filename in an extra column in the >Result table? > >Thanks in advance >Philipp Merkelbach >________________________________ > >Rodenstock GmbH, Amtsgericht Muenchen, HRB 153815, USt-ID-Nr. DE 238022927 >Geschaeftsfuehrer: Oliver Kastalio, Dr. Michael Kleer, Sven Kossyk >Aufsichtsratsvorsitzender: Peter Koerfer-Schuen |
Hello, I've been browsing the list and couldn't find an answer, I'm sorry if it has already been solved. I have a similar problem, Iḿ writing a macro and I need to add a column with a string to the ResultsTable (I have to measure different distances in the same photo and I need to keep the filename), is there a way to do this? I could try adding this information as an integer (ie 1 for length, 2 for width) but I was trying to avoid this because it would be confusing when having lots of different measures in the same photograph.
Thanks a lot Laura |
Hi Laura,
if you write a plugin, you could have two columns, one for 'length' and one for 'width'. You could use, e.g., two action tools, one that the user presses after selecting the length, one after selecting the width; and the macro would write the distance to the correct column. Otherwise, when only using the line tool, maybe the 'angle' column could tell you what is length and what is width? Michael ________________________________________________________________________ On Thu, June 7, 2012 05:47, lalapaulin wrote: > Hello, I've been browsing the list and couldn't find an answer, I'm sorry > if > it has already been solved. I have a similar problem, Iḿ writing a macro > and > I need to add a column with a string to the ResultsTable (I have to > measure > different distances in the same photo and I need to keep the filename), is > there a way to do this? I could try adding this information as an integer > (ie 1 for length, 2 for width) but I was trying to avoid this because it > would be confusing when having lots of different measures in the same > photograph. > Thanks a lot > Laura > > -- > View this message in context: > http://imagej.1557.n6.nabble.com/String-in-SetResult-tp4620486p4998931.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > 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 lalapaulin
> Hello, I've been browsing the list and couldn't find an answer, I'm sorry if
> it has already been solved. I have a similar problem, Iḿ writing a macro and > I need to add a column with a string to the ResultsTable (I have to measure > different distances in the same photo and I need to keep the filename), is > there a way to do this? I could try adding this information as an integer > (ie 1 for length, 2 for width) but I was trying to avoid this because it > would be confusing when having lots of different measures in the same > photograph. > Thanks a lot > Laura Hello Laura, you may consider to use plugin ObjectJ, where you can use differently colored marker types whose properties (such as length) appear in their own columns. For example, for our bacterial work we use a red segmented line for the cell axis, and a green line for the diameter. Because they are part of the same object (=cell), we set the "Composite Object" flag, which means that both lines reside under the same cell number and their proporties appear in the same results row. The internal results table is actively linked to the images. It is refreshed whenever you kill an object (e.g with the pistol tool) or e.g. change the length of a line. ObjectJ allows to perform measurements across many images or (hyper)stacks, so you don't have to care about file names, as ObjectJ handles the organization. But still you could create a column that contains the file name. http://simon.bio.uva.nl/objectj Norbert Vischer Research Engineer Centre for Advanced Microscopy Swammerdam Institute for Life Sciences (SILS) University of Amsterdam Science Park 904 1098 XH Amsterdam, the Netherlands -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |