[Insight-users] Drawing a circle

Luis Ibanez luis.ibanez at kitware.com
Wed Apr 6 11:54:02 EDT 2005


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
> 
> 





More information about the Insight-users mailing list