Re: Drawing 3D rois

Posted by Thomas Boudier on
URL: http://imagej.273.s1.nabble.com/Drawing-3D-rois-tp5000564p5000585.html

Hi,

here a simple macro that reads the rois (assuming one per slice) and
draws the mask in a new image.

w=getWidth();
h=getHeight();
s=nSlices();
newImage("Mask", "8-bit Black", w, h, s);
setForegroundColor(255, 255, 255);
nb=roiManager("count");
for(i=0;i<nb;i++) {
        roiManager("Select",i);
run("Fill", "slice");
}

Thomas


Le 29/10/2012 17:29, m_a_x a écrit :

> Thank you for you quick reply! I tried the segmentation editor but it doesnt
> work fine for me. When I use it, a new window opens with black slices where
> the 3D roi occurs after drawing it. Unfortunately the 3D manager cant
> analyze the grey values of those slices as they are all black. I think there
> is a simple solution for that problem but I dont get it. Can you please help
> me with that?
> Thank you very much!
>
> Max
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/Drawing-3D-rois-tp5000564p5000568.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

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