Posted by
leo durosemont on
Jul 07, 2006; 2:40pm
URL: http://imagej.273.s1.nabble.com/Grabbing-output-from-GLCM-Texture-tp3702207p3702213.html
You should use the getResult() macro function with two parameters as documented in the BuiltIn Macro Functions web page like this :
getResult("Column", row);
Unfortunately, the GLCM_Texture plugin uses the IJ.write function which adds plain lines to the results table, and these data are not grabbable by the getResults() function. You could edit this plugin to have these values either printed to the Log window where you can later get them by getInfo() or put in additionnal columns in the results table itself (better). Then they can be accessed by getResult("col",row);
Leo.
Andy Weller <
[hidden email]> wrote: Dear all,
I am trying to save the output from the 'GLCM_Texture' plugin as a
variable but can't seem to do it!? It outputs results to the Results
table as:
Angular Second Moment 0.03393919269384904
Contrast 35.74723277177291
etc...
but if I:
run("GLCM Texture", "enter=1 select=[0 degrees] angular contrast
correlation inverse entropy");
asm = getResult("Angular Second Moment");
etc...
nothing is saved and there's a problem?! I've seen in the code that the
Angular Second Moment is stored as "asm", so I've changed my macro
accordingly:
run("GLCM Texture", "enter=1 select=[0 degrees] angular contrast
correlation inverse entropy");
asm = getResult(asm);
etc...
but still nothing is saved?!
How can I grab and store these results as a variable?
Many thanks, Andy
---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.