Results Table I/O

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Results Table I/O

David Webster
All,

I would like to be able to write programs that would input
results tables and output new results tables. I can do this
now as long as the table I input is an open system results
table. But, the new table doesn't seem to be "inputable"
by a subsequent Plugin  unless I first export it then import
it back into ImageJ. This is clumsy. Is there anyway to directly
input an open results table into a plugin if it is not the system
table?

David Webster
Reply | Threaded
Open this post in threaded view
|

Re: Results Table I/O

Frederic V. Hessman
I had a similar need to manage many tables, each associated with an  
image, so I wrote MeasurementTable as a subclass of ResultsTable for  
my astronomy packages.

Try out MeasurementTable from the  http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy/docs/astroj/ 
   package available at http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy/ 
  which has the simple method

        MeasurementTable table = MeasurementTable.getTable(String name);

that returns a subclass of ResultsTable (I added a few other missing  
methods like returning double arrays from columns).  All you'll need  
is the astroj.jar from the Astronomy.zip distribution placed in your  
plugins directory to use it in your own plugins.   Should have added a  
few methods for macro support.....

Rick



On 24 Nov 2009, at 11:15, David William Webster wrote:

> All,
>
> I would like to be able to write programs that would input
> results tables and output new results tables. I can do this
> now as long as the table I input is an open system results
> table. But, the new table doesn't seem to be "inputable"
> by a subsequent Plugin  unless I first export it then import
> it back into ImageJ. This is clumsy. Is there anyway to directly
> input an open results table into a plugin if it is not the system
> table?
>
> David Webster
Reply | Threaded
Open this post in threaded view
|

Re: Results Table I/O

David Webster
Rick,

Thanks, I will give it a shot.

David

On Wed, Nov 25, 2009 at 6:37 AM, Frederic Hessman <
[hidden email]> wrote:

> I had a similar need to manage many tables, each associated with an image,
> so I wrote MeasurementTable as a subclass of ResultsTable for my astronomy
> packages.
>
> Try out MeasurementTable from the
> http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy/docs/astroj/ package available at
> http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy/ which
> has the simple method
>
>        MeasurementTable table = MeasurementTable.getTable(String name);
>
> that returns a subclass of ResultsTable (I added a few other missing
> methods like returning double arrays from columns).  All you'll need is the
> astroj.jar from the Astronomy.zip distribution placed in your plugins
> directory to use it in your own plugins.   Should have added a few methods
> for macro support.....
>
> Rick
>
>
>
>
> On 24 Nov 2009, at 11:15, David William Webster wrote:
>
> All,
>>
>> I would like to be able to write programs that would input
>> results tables and output new results tables. I can do this
>> now as long as the table I input is an open system results
>> table. But, the new table doesn't seem to be "inputable"
>> by a subsequent Plugin  unless I first export it then import
>> it back into ImageJ. This is clumsy. Is there anyway to directly
>> input an open results table into a plugin if it is not the system
>> table?
>>
>> David Webster
>>
>