Login  Register

Re: automatically draw a ROI circle

Posted by Michael Schmid on Jun 10, 2009; 4:16pm
URL: http://imagej.273.s1.nabble.com/automatically-draw-a-ROI-circle-tp3692143p3692145.html

Hi Adam,

this question is not really clear to me.
- Inscribed circle: get it from Process>Binary>Ultimate Points
- Best-fit circle: get the centroid and area from the particle analyzer
- Circumscribed circle: modify the macro
   http://rsb.info.nih.gov/ij/macros/FeretsDiameter.txt
to determine the circumscribed circle and set the roi.

(BTW, the center of the circumscribed circle would be a nice addition  
to the Particle analyzer output...).

Michael
________________________________________________________________

On 10 Jun 2009, at 17:41, Adam Hacking wrote:


> Hi,
>
> I have an object of interest in an image that is round but has a  
> discontinous perimeter (cross-section through a metallic foam rod).  
> I would like to automatically draw a ROI (circle) that best fits  
> the outline. In user mode this is simple as one simply constrains  
> or shrinks the ROI until it touches the metal. The result is the  
> cross section bound by a round ROI.
>
> Can anyone suggest a simple approach to code this so it does not  
> have to be done manually ?
>
> Thanks
>
> Adam