[Insight-users] Smoothing Vector Images

Sergio Vera sergio.vera at alma3d.com
Tue Jun 15 11:45:31 EDT 2010


I don't know if it will be faster (probably not) or will use less memory
(doubtful), but you can use NthElementImageFilter to do this.

This class can transform a image containing covariant vectors of length N
into N images of scalar type. Probably it will slightly faster because you
are not explicitly copying the image.

You can try it at least

Sergio

On Tue, Jun 15, 2010 at 5:34 PM, Merrem, Andreas <
andreas.merrem at medma.uni-heidelberg.de> wrote:

>  Hi Luis, hi everyone,
>
> I am trying to smooth 3D image volumes of size 256 * 256 * 22 pixels, in
> which each pixel contains a 3 dimensional itk::CovariantVector. The vector
> components should be smoothed independently over the whole volume. My
> current solution is to first copy the 3 vector components in each pixel into
> 3 separate images with pixel type float, then use the
> itk::RecursiveGaussianImageFilter for smoothing on all 3 images, and finally
> copy the pixel values of the smoothed images back into the covariant vector
> image.
>
> My problem is that this procedure takes about one second. As a part of a
> registration program, this leads to extremely slow registration (about 10
> minutes for one 256*256*22 dicom volume). Is there a way to use less memory
> by avoiding the copying, or do you know a different, faster technique of
> applying a Gaussian filter?
>
> Thanks a lot,
>
> Andreas
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
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/20100615/86699d59/attachment.htm>


More information about the Insight-users mailing list