De-combine ROI

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

De-combine ROI

roberto aranibar
Does anyone know if it is possible to separate a multi-part ROI into
separate ROIs? That is, if I have an ROI that I modified using the alt key,
is there a way to separate the original ROI from the modified part?

Thanks for any help in advance,

Roberto

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Reply | Threaded
Open this post in threaded view
|

Re: De-combine ROI

dscho
Hi,

On Thu, 6 Jul 2006, roberto aranibar wrote:

> Does anyone know if it is possible to separate a multi-part ROI into
> separate ROIs? That is, if I have an ROI that I modified using the alt
> key, is there a way to separate the original ROI from the modified part?

When you combine ROIs, you do not have the original ROI any more, but just
the merged result. You could, however, write a plugin, which uses the
PathIterator class to decompose the ROI. But there are several problems:

- in ImageJ, you can have one ROI only. How do you choose which one, and
  what do you do with the others?

- You can have a WIND_EVEN_ODD rule on the selection, which basically
  means that you can do things like a doughnut shape. In such a case, you
  should _not_ decompose the segments blindly, because they might not make
  sense on their own (i.e. you could end up with _two_ circle selections,
  when you really wanted to _unselect_ the inner circle).

Ciao,
Dscho