[Insight-users] streaming to file

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Thu Feb 17 16:37:34 EST 2005


On Fri, 2005-01-28 at 13:39 +0100, sigmunau at idi.ntnu.no wrote:
> Is it possible to read from file, do simple processing and save to file in a
> streaming fashion without ever loading the entire image into memory? I tried
> using StreamingImageFilter, but it seems to output the entire image in one
> big chunk. I also noticed that ImageIOBase has a CanStreamWrite method, but
> none of the subclasses seem to implement that. I'm working with raw images
> and/or metaimages, and I don't see any particular reason why these can't be
> written one slice/line at a time (or any integer number of slice/line). And
> even if some ImageIO class did implement it, I failed to find any way to
> control this streaming. 
> 
> If the case is that this could be done and is considered quite easy, just
> that noone has done it yet, I would consider writing a patch.
> 
> 
> Sigmund Augdal


What about IO with something like the C mmap().  That could provide
random access to the disks.  

I'm particularly excited to see streaming read and write as one of my
images is much bigger that the RAM available to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050217/bd3eefb3/attachment.pgp


More information about the Insight-users mailing list