[ITK-users] [ITK] Read a frame from a 3D image

Gib Bogle g.bogle at auckland.ac.nz
Tue Feb 2 15:37:26 EST 2016


Thanks Bradley.  That sounds a bit beyond my C++ competence level.  I'll go the page-splitting route.

Cheers
Gib
________________________________
From: Bradley Lowekamp [blowekamp at mail.nih.gov]
Sent: Wednesday, 3 February 2016 3:30 a.m.
To: Gib Bogle
Cc: insight-users
Subject: Re: [ITK] [ITK-users] Read a frame from a 3D image

Gib,

Currently the TIFFIO does not support streamed reading. Being able to just read a page is a straight forward first step. In fact when I refactored it I made sure it was clear how this could be done in the future [1].

The correct way to do it would be to upgrade TIFFImageIO with this feature. This would involve changing the parent class to StreamingImageIOBase, then overloading methods to disable streamed writing, and overloading the method ( GenerateStreamableReadRegionFromRequestedRegion ) to enable stream read such that the RequestedRegion is expanded to the whole slice, and verifying all the TIFF fields are valid for this operations.

The tricky part would be to adapt existing tests, and test the new functionality.

After that, the streaming would happen seamlessly with the ITK pipeline, giving there are stream compatible filters and all the features are configured correctly.

Alternatively, there are utilities to split the pages of the TIFF in to separate files.

HTH,
Brad



On Feb 2, 2016, at 12:25 AM, Gib Bogle <g.bogle at auckland.ac.nz<mailto:g.bogle at auckland.ac.nz>> wrote:

We want to work with a 3D TIFF that is much too big to fit in memory.  It would be sufficient to be able to specify a 2D frame and read that.  How can this be done?

Thanks
Gib
_____________________________________
Powered by www.kitware.com<http://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.php

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://public.kitware.com/mailman/listinfo/insight-users
_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160202/ae7be1aa/attachment.html>


More information about the Insight-users mailing list