Re: Grabbing output from 'GLCM_Texture'?
Posted by
Cabrera, Julio (NIH/NCI) [E] on
Jul 07, 2006; 3:17pm
URL: http://imagej.273.s1.nabble.com/Grabbing-output-from-GLCM-Texture-tp3702207p3702212.html
Andy,
I had a similar problem when calling the plugin from a macro. In my case the plugin doesn't even run when called from a macro.
Can you run the plugin from a macro?
If you could figure it out I will appreciate it so I can change the plugin accordingly.
Julio Cabrera, Ph.D.
National Cancer Institute-Frederick
Gene Regulation and Chromosome Biology Lab.
Building 469/127
PO Box B, Frederick, MD 21702
USA
Phone: 301-846-1976
Fax: 301-846-1456
> ----------
> From: Andy Weller
> Reply To: List IMAGEJ
> Sent: Friday, July 7, 2006 9:21 AM
> To: List IMAGEJ
> Subject: Grabbing output from 'GLCM_Texture'?
>
> 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
>
>