[Insight-users] EllipseSpatialObject, GroupSpatialObject & SpatialObjectToImageFilter performance

Sergio Vera sergio.vera at alma3d.com
Tue Nov 9 07:12:45 EST 2010


Hello There,


I'm generating an image with a sphere at a specific point using
EllipseSpatialObject for the sphere, GroupSpatialObject to put the sphere in
a desired place in the image and SpatialObjectToImageFilter to generate the
sphere image (in fact is a mask image).

However, even if the image is not too big, the execution speed of the
pipeline is really really slow.

The image that we generate is 256x256x136 with spacing 0.7,0.7,0.8 and the
sphere generated has about 27 pixels of radius.

In debug version, the generation of the sphere costs 1700 segs, and release
versions 220 seconds. Certaninly, too much time to just generate a mask
image of a spheical region.

Does anybody had experienced such times with the generagion of spheres? What
I'm doing wrong...

Is there any other (fastest) way to generate an spherical / elliptical mask
image?

Regards & Thanks


-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101109/43556a42/attachment.htm>


More information about the Insight-users mailing list