[Insight-users] Accumulate a dimension

Miller, James V (Research) millerjv at crd.ge.com
Mon Oct 4 09:30:26 EDT 2004


The itk::ShrinkImageFilter only does point sampling of the image being
shrunk.

It does not have all the modes of the vtkImageShrink3D were the sampling
function can be averaging, minimum, maximum, median.

To date what we have done is to use two filters, one that computes a
function
over a neighborhood (mean, median, etc) and a second filter that point 
samples the output of the neighborhood function (ShrinkImageFilter).

This is not quite as efficient as having a single filter that shrinks using
some sampling function. You can add a feature request to the bug tracker if
you would like this type of functionality.

There are also a series of BSpline related interpolation and resampling 
filters.  Take a look at BasicFilters/itkBSpline*.h

Jim


-----Original Message-----
From: Gavin Baker [mailto:gavinb+xtk at cs.mu.OZ.AU]
Sent: Monday, October 04, 2004 7:32 AM
To: Emiliano Beronich
Cc: ITK
Subject: Re: [Insight-users] Accumulate a dimension



Hello Emiliano,

On Thu, Sep 30, 2004 at 06:18:07PM -0300, Emiliano Beronich wrote:

> I have a 4D-image and I need to accumulate the 4-dimension to convert it 
> to a 3D image. Something like this is accomplished by 
> vtkShrinkImageFilter but I would like to do it inside ITK.
> Do you know how can I do it?

There is an ITK equivalent, namely itk::ShrinkImageFilter, described here:

    http://www.itk.org/Doxygen/html/classitk_1_1ShrinkImageFilter.html

You may also be interested in the itk::ExtractImageFilter, which lets you
simply collapse dimensions as well as extract regions of interest:

    http://www.itk.org/Doxygen/html/classitk_1_1ExtractImageFilter.html

There is also the related itk::CropImageFilter:

    http://www.itk.org/Doxygen/html/classitk_1_1CropImageFilter.html

Between all these, you should be able to do almost whatever you need.

Regards,

  :: Gavin

-- 
Gavin Baker                                      Complex Systems Group
http://www.cs.mu.oz.au/~gavinb             The University of Melbourne
_______________________________________________
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