[Insight-users] Read a part of an image

Julien Jomier julien.jomier at kitware.com
Thu Apr 17 17:14:40 EDT 2008


Hi Olivier,

ITK has support for streamed reading/writing for uncompressed MetaImage 
files. (AFAIK this is the only format that supports full streaming for now).

You can look at some test examples in
Insight/Testing/Code/IO/itkMetaImageStreamingIOTest.cxx
Insight/Testing/Code/IO/itkMetaImageStreamingWriterIOTest.cxx

Hope that helps,

Julien

Olivier Tournaire wrote:
> Hi all,
> 
> I would like to know if it is possible to read just a region of an 
> image, in order to not load le full image in memory. I saw a 
> SetBufferedRegion method for itk::Image, but, I do not know how to use 
> it with itk::ImageFileReader. Any tips ?
> 
> Best regards,
> 
> Olivier
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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