append two results table

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

append two results table

donny008
Hello

In my java plugin, i would like to analyse measure my image at two distinct
stages. And produce two results table each with different properties, then
append the two results table within my code and save them as excel file.
Though i searched the list for such an appending operation, there werent any
fruitful methods in any. Is this idea feasible , has someone done this
already. Seeking some directions here. please help


regards


--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: append two results table

Arne Seitz
Hi,

IMHO appending two results tables in ImageJ is not easily possible.
Accessing the results is possible shown in the example below.

.....
ResultsTable Results=ResultsTable.getResultsTable();
float[] Area=Results.getColumn(0);
float[] Circ=Results.getColumn(18);
.....

Thus writing a plugin which is appending the results is feasible.
If you want to process your results in Excel afterwards I just wonder whether it would not be easier to append the results there.

Just my 2c.

Cheer Arne



-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Donny George
Sent: samedi 28 août 2010 12:14
To: [hidden email]
Subject: append two results table

Hello

In my java plugin, i would like to analyse measure my image at two distinct
stages. And produce two results table each with different properties, then
append the two results table within my code and save them as excel file.
Though i searched the list for such an appending operation, there werent any
fruitful methods in any. Is this idea feasible , has someone done this
already. Seeking some directions here. please help


regards


--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: append two results table

donny008
thank you arne

what i tried right now was to display two results table. i wa nt to copy the
value from result table 1 into a column in result table 2. i could access
the desired value from result table 1(with getColumn) but i wasnt able to
put this value into result table 2. is this possible or should i try some
other way to do it

regards
donny


i did try this method and though i am able to access the store the result, i
am not able to change the value of another column

On Sun, Aug 29, 2010 at 9:12 AM, Seitz Arne <[hidden email]> wrote:

> Hi,
>
> IMHO appending two results tables in ImageJ is not easily possible.
> Accessing the results is possible shown in the example below.
>
> .....
> ResultsTable Results=ResultsTable.getResultsTable();
> float[] Area=Results.getColumn(0);
> float[] Circ=Results.getColumn(18);
> .....
>
> Thus writing a plugin which is appending the results is feasible.
> If you want to process your results in Excel afterwards I just wonder
> whether it would not be easier to append the results there.
>
> Just my 2c.
>
> Cheer Arne
>
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Donny George
> Sent: samedi 28 août 2010 12:14
> To: [hidden email]
> Subject: append two results table
>
> Hello
>
> In my java plugin, i would like to analyse measure my image at two distinct
> stages. And produce two results table each with different properties, then
> append the two results table within my code and save them as excel file.
> Though i searched the list for such an appending operation, there werent
> any
> fruitful methods in any. Is this idea feasible , has someone done this
> already. Seeking some directions here. please help
>
>
> regards
>
>
> --
> Donny George
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: append two results table

Arne Seitz
Hi Donny,

to my knowledge having two results table at the same time is not possible.
But with the following code allows you at least to copy a column from one to another ResultsTable. Probably not a very elegant way of solving the problem but at least something that works more or less.

Cheers Arne




.....
IJ.run("Blobs (25K)");
IJ.run("Threshold...");
IJ.run("Convert to Mask");
IJ.run("Analyze Particles...", "size=100-Infinity circularity=0.00-1.00 show=Nothing display clear include");
ResultsTable RT1=ResultsTable.getResultsTable();
float[] area=RT1.getColumn(0);
               
IJ.run("Erode");
IJ.run("Analyze Particles...", "size=100-Infinity circularity=0.00-1.00 show=Nothing display clear include");
               
       
ResultsTable RT2=ResultsTable.getResultsTable();
               
               
               
               
int count=area.length;
RT2.setHeading(27, "Old Area");
for (int i=0;i<count;i++){
        RT2.setValue(27, i, area[i]);
}
RT2.show("Results");


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Donny George
Sent: dimanche 29 août 2010 20:34
To: [hidden email]
Subject: Re: append two results table

thank you arne

what i tried right now was to display two results table. i wa nt to copy the
value from result table 1 into a column in result table 2. i could access
the desired value from result table 1(with getColumn) but i wasnt able to
put this value into result table 2. is this possible or should i try some
other way to do it

regards
donny


i did try this method and though i am able to access the store the result, i
am not able to change the value of another column

On Sun, Aug 29, 2010 at 9:12 AM, Seitz Arne <[hidden email]> wrote:

> Hi,
>
> IMHO appending two results tables in ImageJ is not easily possible.
> Accessing the results is possible shown in the example below.
>
> .....
> ResultsTable Results=ResultsTable.getResultsTable();
> float[] Area=Results.getColumn(0);
> float[] Circ=Results.getColumn(18);
> .....
>
> Thus writing a plugin which is appending the results is feasible.
> If you want to process your results in Excel afterwards I just wonder
> whether it would not be easier to append the results there.
>
> Just my 2c.
>
> Cheer Arne
>
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Donny George
> Sent: samedi 28 août 2010 12:14
> To: [hidden email]
> Subject: append two results table
>
> Hello
>
> In my java plugin, i would like to analyse measure my image at two distinct
> stages. And produce two results table each with different properties, then
> append the two results table within my code and save them as excel file.
> Though i searched the list for such an appending operation, there werent
> any
> fruitful methods in any. Is this idea feasible , has someone done this
> already. Seeking some directions here. please help
>
>
> regards
>
>
> --
> Donny George
>



--
Donny George