Re: Segmenting a ROI
Posted by
Nathaniel Ryckman on
Jun 08, 2011; 3:49pm
URL: http://imagej.273.s1.nabble.com/Segmenting-a-ROI-tp3684322p3684323.html
Here is an idea:
1) Duplicate the Roi's
2) Use colors, clear, and fill command to make a black ring on a white canvas
3) Get coordinates of center of small circle, size of small circle, and size of big circle
4) Draw white lines to segment the donut
(big radius - small radius = length of lines, startY = centerY + radius * sin(iterator * 2pi/6 + 0), startX = centerX + radius * cos(iterator * 2pi/6 + 0), starting point + length = end point)
5) Particle analyzer
I hope that helps get you started. Definitely double check the math since I didn't double check it very well.
Good luck!
flettster wrote
Hi
I have a donut (with a hole in the middle) shaped ROI (an outer circle with an inner circle to create a ring). I need to split it into 6 equal parts to create six ROI's something like this:

Any ideas how to do this without rewriting the good book?
Thanks in advance as always
Andy