<div dir="ltr">Thanks Matt!<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">itk::ImageFileReader is not aware of modifications that occur to the<br>
ImageIO class, so Modified() must be called on the ImageFilterReader<br>
after SetSeriesIndex is called on the ImageIO. <br></blockquote><div><br></div><div>the Modified() method was exactly what I was looking for.. I didn't look far enough through the inherited methods; my bad. <br><br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
There should be no modification to itk::ImageIOBase itself, only the<br>
addition of a SCIFIOImageIO::SetSeriesIndex method.<br></blockquote></div><div><br></div><div> I haven't modified the ImageIOBase at all. Sorry, I could have worded that better.. :-p<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
To process a series of<br>
images, then the Video framework should be used per our previous<br>
discussion.<br></blockquote><div><br></div><div> Locally I've been able to convert a multi-series dataset with the SCIFIOImageIO, using the SetSeriesIndex method + Modified(). I know it won't work properly with mixed sized images, but I still think it's an improvement to the SCIFIOImageIO, so I submitted <a href="http://review.source.kitware.com/#/c/11936/">a patch</a> (which also fixes itkSCIFIOImageIO::Write, RGB reading, and other things..)<br>
<br></div><div> I admit I'm not entirely sure how much work it would be to create a SCIFIO IO for the video framework. So I created an <a href="https://github.com/scifio/scifio-imageio/issues/3">issue for it</a> in our github repo for now.<br>
<br></div><div>- Mark<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 12:19 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mark,<br>
<br>
There should be no modification to itk::ImageIOBase itself, only the<br>
addition of a SCIFIOImageIO::SetSeriesIndex method.<br>
<br>
itk::ImageFileReader is not aware of modifications that occur to the<br>
ImageIO class, so Modified() must be called on the ImageFilterReader<br>
after SetSeriesIndex is called on the ImageIO. To process a series of<br>
images, then the Video framework should be used per our previous<br>
discussion.<br>
<br>
Thanks,<br>
Matt<br>
<div><div class="h5"><br>
On Tue, Jul 9, 2013 at 2:22 PM, Mark Hiner <<a href="mailto:hiner@wisc.edu">hiner@wisc.edu</a>> wrote:<br>
> Hello all,<br>
><br>
> I'm trying to modify the SCIFIO-ITK ImageIO to accommodate multi-series<br>
> datasets. I added API to the ImageIO itself allowing for series<br>
> specification, but am not sure how to get repeated ImageIO::Read calls<br>
> without also triggering ReadImageInformation (which I want to avoid, as it<br>
> 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>
> and in a loop over the image series, I call my SCIFIOImageIO::SetSeries<br>
> method, and then ImageFileWriter::Update() to write the current series.<br>
><br>
> But it seems like after being called once, Update() stops triggering future<br>
> ImageIO::Read calls as long as the same ImageIO is attached to the<br>
> ImageFileReader...<br>
><br>
> So what's the intended ITK way of updating the ImageFileReader's output,<br>
> without re-parsing? I looked through the API docs, but nothing I've tried<br>
> has worked... (ImageFileReader::GenerateOutputInformation calls<br>
> ImageIO::ReadImageInformation. I'm assuming ImageFileReader::GenerateData<br>
> would do what I want, but it's protected so I suspect there's a different<br>
> way..)<br>
><br>
> Thanks!<br>
> Mark<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
><br>
</blockquote></div><br></div>