Login  Register

Re: plugin output, ResultsTable vs. List

Posted by Michael Schmid on Feb 26, 2014; 11:44am
URL: http://imagej.273.s1.nabble.com/plugin-output-ResultsTable-vs-List-tp5006562p5006684.html

Hi Rainer,

if you want to access data from a plugin without passing them via the ResultsTable, here are two options that come into my mind:
- A temporary file
- The plugin could implement the MacroExtension, which makes it callable from macros with Ext.yourCommandName(arguments).  I have no experience with this, but it seems that it can handle arrays.

Michael
________________________________________________________________
On Feb 19, 2014, at 12:34, Rainer M. Engel wrote:

> No. It does not work like expected with my limited knowledge here.
>
> I'm looking for a way to print values to a list from a plugin, so that
> these values can be obtained later via macro. Not showing the "Results"
> doesn't work with "getResultString()" from macro.
>
> I don't want to use the Log or results window. I'm looking for another
> way so that no window is popping on and off during batch mode.
>
> Any tip is much appreciated.
>
> Regards,
> Rainer
>
>
>
> Am 18.02.2014 17:30, schrieb Rainer M. Engel:
>> Hello everyone.
>>
>> I modified the SSIM index plugin to be able to use it more flexible via
>> macro language. This is working but for batch mode I have to print the
>> result to a window which is at least not shown.
>>
>> I can do this by not using..
>>> rt.show("Results");
>>
>> But then there will be an invisible ResultsTable after executing the
>> plugin. As far as I can say this Window (its content) is overwritten due
>> to the name. So I guess it is not that bad.
>> I don't want to use the log window for this either, since this prints
>> status information during macro execution.
>>
>> Which way is recommended for such things?
>>
>> Best regards,
>> Rainer
>>
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html