<div dir="ltr"><div><div><div><div><div>Hello all,<br><br></div> 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).<br>
<br>I have the following pipeline:<br><br> itk::ImageFileReader -> itk::StreamingImagefilter -> itk::ImageFileWriter<br><br></div>and in a loop over the image series, I call my SCIFIOImageIO::SetSeries method, and then ImageFileWriter::Update() to write the current series.<br>
<br></div> 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...<br><br></div> 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..)<br>
<br></div>Thanks!<br>Mark<br></div>