Hi Mark, There should be no modification to itk::ImageIOBase itself, only the addition of a SCIFIOImageIO::SetSeriesIndex method.
itk::ImageFileReader is not aware of modifications that occur to the ImageIO class, so Modified() must be called on the ImageFilterReader after SetSeriesIndex is called on the ImageIO. To process a series of images, then the Video framework should be used per our previous discussion. Thanks, Matt On Tue, Jul 9, 2013 at 2:22 PM, Mark Hiner <[email protected]> wrote: > Hello all, > > I'm trying to modify the SCIFIO-ITK ImageIO to accommodate multi-series > datasets. I added API to the ImageIO itself allowing for series > specification, but am not sure how to get repeated ImageIO::Read calls > without also triggering ReadImageInformation (which I want to avoid, as it > is an expensive operation and only needs to execute once). > > I have the following pipeline: > > itk::ImageFileReader -> itk::StreamingImagefilter -> itk::ImageFileWriter > > and in a loop over the image series, I call my SCIFIOImageIO::SetSeries > method, and then ImageFileWriter::Update() to write the current series. > > But it seems like after being called once, Update() stops triggering future > ImageIO::Read calls as long as the same ImageIO is attached to the > ImageFileReader... > > So what's the intended ITK way of updating the ImageFileReader's output, > without re-parsing? I looked through the API docs, but nothing I've tried > has worked... (ImageFileReader::GenerateOutputInformation calls > ImageIO::ReadImageInformation. I'm assuming ImageFileReader::GenerateData > would do what I want, but it's protected so I suspect there's a different > way..) > > Thanks! > Mark > > _______________________________________________ > Powered by 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://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://www.itk.org/mailman/listinfo/insight-developers > _______________________________________________ Powered by 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://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://www.itk.org/mailman/listinfo/insight-developers
