[Insight-users] Image reformat filter?

Zachary Pincus zpincus at stanford.edu
Thu Jun 30 16:27:36 EDT 2005


Hi George,

itk::ResampleImageFilter can be used to resample images to different 
resolutions, pixel spacings, origins and so forth, with arbitrary 
transforms and interpolation schemes.

itk::ChangeInformationImageFilter can be used to change image metadata 
without resampling.

itk::PadImageFilter (and MirrorPadImageFilter, etc) pad images, while 
itk::CropImageFilter crops.

You can see the class list for ITK classes here: 
http://www.itk.org/Doxygen/html/classes.html -- I find that just 
perusing the class list can be very helpful sometimes. Also, the ITK 
software guide has a good chapter of image metadata (like origin and 
spacing) and resampling/transforming images.

Finally, note that, as far as I can tell, ITK doesn't have great 
facilities for image decimation -- that is, shrinking images -- because 
the resampling framework is set up around interpolating the value at an 
exact point, not integrating the value over an image region. The image 
pyramid methods, however, can be used to do power-of-two decimation.

Zach Pincus

Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine


On Jun 30, 2005, at 1:03 PM, Li, George (NIH/NCI) wrote:

> Dear all ITK users:
>
> Could anyone tell me which filter does the image reformatting,
> including the change of image size and voxel size? Also, any
> filter does gray level optimization for the best visual effect
> (with optimal window/level setting for viewing)?
>
> Thanks,
>
> George
> _______________________________________________
> 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