[Insight-users] Reading portion of the image without loading the whole image into the memory

David Doria daviddoria at gmail.com
Tue Aug 14 17:08:29 EDT 2012


On Tue, Aug 14, 2012 at 4:59 PM, yan xu <xy198908 at gmail.com> wrote:

> Hi, all
>       I'm facing a problem to read only portion of the image to test the
> algorithm since the whole image is too big for the memory. I have tried
> using the itk pipeline through extractimage filter, but I don't think it
> works. The memory still goes larger and larger. My image type is 16bit
> nrrd. What I hope is that the only the desired region of the image is
> loaded into the memory. Is there a solution for that? Thank you!
>

I've never done it, but you could try this:

http://www.itk.org/Wiki/ITK/Examples/SimpleOperations/RequestedRegion

on your ImageReader.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120814/99c141f5/attachment.htm>


More information about the Insight-users mailing list