[Insight-users] SpatialObjectToImageFilter slow?!
Dan Mueller
dan.muel at gmail.com
Thu Oct 7 03:05:10 EDT 2010
Hi Patrik,
Yes, SpatialObjectToImageFilter is known to be slow. Here is some advice:
(1) Make sure you have compiled your code in "Release" mode (with
optimizations turned on)
(2) If the spatial objects are sparse (i.e. their total area/volume is
less than ~50% of the total area/volume), consider using this filter:
http://www.insight-journal.org/browse/publication/117
HTH
Cheers, Dan
On 7 October 2010 02:44, Patrik Brynolfsson
<patrik.brynolfsson at radfys.umu.se> wrote:
> Hello,
> I have constructed a group of 20 spatial object ellipses that I would like
> to convert to an image, so I use SpatialObjectToImageFilter. The output
> image is of size 200x200x320, and it takes about 12 minutes on an i7 2.8 GHz
> computer with 12 GB ram. Is it normal for it to be that slow? (release
> configuration in MS VS 2010). I more or less followed the code
> in SpatialObjectToImage1.cxx, but added more spatial objects.
> ---
> Patrik Brynolfsson
More information about the Insight-users
mailing list