Login  Register

Re: array of ROIs

Posted by dscho on Jul 20, 2006; 10:55am
URL: http://imagej.273.s1.nabble.com/Re-array-of-ROIs-tp3702070.html

Hi,

On Tue, 18 Jul 2006, ytsejam11 wrote:

> i'm writing a plug-in that needs to paint different ROIs for each slice.
> How can i save every ROI and show it only when i'm in the right slice?

You need to listen to changes of StackWindow's sliceSelector (see attached
plugin for a proof of concept).

HOWEVER, most likely you want more: If you _fill_ the Roi, it only fills
in the current window, _not_ on the whole stack. You have to reimplement
this functionality (either as macro, or as plugin).

Hth,
Dscho

ROI_3D.java (1K) Download Attachment