<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> shrinker->UpdateOutputInformation();</div><div><div> RGBVolumeType::RegionType outputRegion = shrinker->GetOutput()->GetLargestPossibleRegion();</div><div><br></div><div><div> itk::ImageRegionSplitter<3>::Pointer splitter = itk::ImageRegionSplitter<3>::New();</div><div> numberOfSplits = splitter->GetNumberOfSplits(outputRegion, numberOfSplits);</div><div><br></div><div><div> writer->SetFileName( outputFilePN.GetPathName()); </div><div> writer->SetInput(shrinker->GetOutput());</div><div> for(unsigned int i = 0; i < numberOfSplits; ++i) {</div></div><div><div> RGBVolumeType::RegionType streamRegion = splitter->GetSplit(i, numberOfSplits, outputRegion);</div></div></div></div><div> ioRegion = streamRegion; // sudo code</div><div><br></div><div><div> writer->SetIORegion(ioRegion);</div><div> writer->Update();</div><div> }</div><div><br></div><div><br></div><div>Is this the correct approach? Does anyone have an example of streaming writing? </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 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"> </span><span class="Apple-converted-space"> </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 </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"> </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>