[Insight-users] Drawing a circle

Julien Jomier jjomier at cs.unc.edu
Wed Apr 6 11:59:27 EDT 2005


Hi Ilaria,

You can also use a combination of itkEllipseSpatialObject and 
SpatialObjectToImageFilter.

Just create a circle with the itkEllipseSpatialObject<2> by specifying a
radius. Then pass the ellipse to the SpatialObjectToImageFilter to get a 
binary image.

Hope that helps,

Julien

Luis Ibanez wrote:
> 
> Hi Ilaria,
> 
> This may be an overkill,
> but it is an easy way out:
> 
> You can use the FastMarching image filter:
> 
> 1) put a seed point in the position of your circle center
> 2) set the speed to 1 (don't plug a seed image in)
> 3) set the stopping time to the radius of your desired circle
> 
> 
> 
>   Regards,
> 
> 
>      Luis
> 
> 
> 
> ----------------------------
> Ilaria Canova Calori wrote:
> 
>> Dear all,
>>
>> I would like to create a binary image such as black background and a
>> white circle, given a specified center and radius.
>> I was looking at the SphereSpatialFunction but it seems to be
>> implemented only for 3D.
>>
>> Any suggestions?
>>
>> Ilaria Canova Calori
>>
>> -- 
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 



More information about the Insight-users mailing list