Login  Register

Re: Stacks or Overlays

Posted by Christophe CHAMOT-2 on Oct 21, 2010; 8:08am
URL: http://imagej.273.s1.nabble.com/Stacks-or-Overlays-tp3686569p3686570.html

  Hi alone,

Give a try with this macro  code:


//----------------------------------------------------------------------------
waitForUser("Draw your ROI and hit t\nthen press OK");
n=roiManager("count");

for(i=0;i<n;i++){
selectImage(1);
roiManager("Select", i);
run("Duplicate...", "title=roi"+i+1);
run("Clear Outside");
}

run("Images to Stack", "method=[Copy (center)] name=Stack title=roi use");
roiManager("reset");
//-----------------------------------------------------------------------------------

Bye,

C.C.

Le 20/10/2010 13:34, amsmota a écrit :

> Hi all.
>
> I like to do something like this:
>
> 1- open imageA
> 2- select a ROI from it
> 3- cut it from imageA
> 4- create a Image1 as a "FillOutside" - so I can get image1 with the same
> size as A with only the ROI and filled with a transparent color
> 5- repeat 2,3,4 a number of times
> 6- with all those image1...imageN create a stack/overlay that when put
> together will look the same as imageA
>
> So, what's the best way to achieve this? Is it with stacks or overlays? Is
> there something like this already done?
>
> Cheers.

--
Christophe CHAMOT
Responsable Technique PLATIM
IFR128 BioSciences Lyon-Gerland
04.72.72.87.62
www.ifr128.prd.fr/PLATIM