Posted by
Olivier Burri on
May 11, 2015; 8:19am
URL: http://imagej.273.s1.nabble.com/Result-table-in-plugin-tp5012789p5012802.html
Hi Nico,
Indeed, the IJ.renameResults does not seem to like the format.
So far, a workaround that I found is as follows:
//Select proper window, modify this to whatever you need
selectWindow("Image correlation. Local region size = 3 pixels");
// Save as result and reopen right away
saveAs("results", "D:\\temp.csv");
open("D:\\temp.csv");
You can now access the results...
Best
Oli
BioImaging & Optics Platform, BIOP
EPFL - SV - PTECH - BIOP
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> Nicolas Brouilly
> Sent: Saturday, May 9, 2015 2:38
> To:
[hidden email]
> Subject: Result table in plugin
>
> Dear all,
>
> I want to use the Image CorrelationJ plugin within a macro and retrieve some
> data from the result table at each cycle of a "for" loop. But, nResults gives a
> value of 0 and getResults("Slope", 1) brings up the following error message:
> "Results" table empty in line 30
>
> The results table popping up is named "Image correlation. local region size = 4
> pixels"
>
> I tried to select the window from the macro, it works. It tried to rename it, it
> does not.
>
> What do I do wrong ?
>
> Thank you !
>
> Nico
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html