<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Greetings all!</div><div><br></div><div>I am trying to stream my data set. I see that MetaIO supports streaming for reading and writing. But I don't seem to be able to use it for writing. I am trying to stream my 13GB data set from a ImageFileReader through a ShrinkImageFilter then write is out with a ImageFileWriter. If I replace the writer with a StreamingImageFilter it works great, the reader streams and everything.</div><div><br></div><div>To get the writer to stream (or not) I am doing this:</div><div><br></div><div>&nbsp;shrinker->UpdateOutputInformation();</div><div><div>&nbsp;RGBVolumeType::RegionType outputRegion = shrinker->GetOutput()->GetLargestPossibleRegion();</div><div><br></div><div><div>&nbsp;&nbsp;itk::ImageRegionSplitter&lt;3>::Pointer splitter = itk::ImageRegionSplitter&lt;3>::New();</div><div>&nbsp;&nbsp;numberOfSplits = splitter->GetNumberOfSplits(outputRegion, numberOfSplits);</div><div><br></div><div><div>&nbsp;&nbsp;writer->SetFileName( outputFilePN.GetPathName());&nbsp;</div><div>&nbsp;&nbsp;writer->SetInput(shrinker->GetOutput());</div><div>&nbsp;&nbsp;for(unsigned int i = 0; i &lt; numberOfSplits; ++i) {</div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp;RGBVolumeType::RegionType streamRegion = splitter->GetSplit(i, numberOfSplits, outputRegion);</div></div></div></div><div>&nbsp;&nbsp; &nbsp; &nbsp;ioRegion = streamRegion; // sudo code</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp;writer->SetIORegion(ioRegion);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;writer->Update();</div><div>&nbsp;&nbsp; &nbsp;}</div><div><br></div><div><br></div><div>Is this the correct&nbsp;approach? Does anyone have an example of streaming writing?&nbsp;</div><div><br></div><div>I think I am going to dig though the ImageFileWriter now to see what are the updates going on in the pipeline execution. I still a bit fuzzy on these details, so &nbsp;may miss something.</div><div><br></div><div>Please let me know of any suggestions.</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br></div></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; ">Lockheed Martin&nbsp;</span></span></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Contractor for</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span> </div><br></body></html>