plotting results from cell counter in 3D

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

plotting results from cell counter in 3D

Jaime21
Dear IMAGEJ list members.
I am counting nuclei in C. elegans using confocal stacks. For counting I'm using the cell counter plugin. Is there a way to plot the results in 3D?. We know the XYZ positions for every point. XY come from the measure option in the plugin and the Z comes from the stack counter.
Thanks in advance.

Jaime Llodra
Reply | Threaded
Open this post in threaded view
|

Re: plotting results from cell counter in 3D

Thomas Boudier
Hi,

something like that (javascript) :

imp=WindowManager.getCurrentImage();
ip=imp.getStack();
rt=ResultsTable.getResultsTable();
nb=rt.getCounter();
for(i=0;i<nb;i++) {
        x=rt.getValue("X",i);
        y=rt.getValue("Y",i);
        z=rt.getValue("Slice",i);
        ip.setVoxel(x,y,z,255);
}

you need a opened image where the point x,y,z will be plotted, and a
resultsTable with columns "X" "Y" and "Slice".

Thomas





Le 03/03/2011 19:11, Jaime A Llodra a écrit :
> Dear IMAGEJ list members.
> I am counting nuclei in C. elegans using confocal stacks. For counting I'm using the cell counter plugin. Is there a way to plot the results in 3D?. We know the XYZ positions for every point. XY come from the measure option in the plugin and the Z comes from the stack counter.
> Thanks in advance.
>
> Jaime Llodra
>
>

--
   /**********************************************************/
      Thomas Boudier, MCU Université Pierre et Marie Curie,
      Modélisation Cellulaire et Imagerie Biologique (ERE),
      IFR 83, Bat B 7ème étage, porte 709, Campus Jussieu.
      Tel : 01 44 27 20 13   Fax : 01 44 27 22 91
/*******************************************************/