<div dir="ltr">Brad,<div><br></div><div>It looks like it may help to add something like:</div><div><br></div><div> ProgressReporter progress( this, 0, this->m_MaximumNumberOfIterations );<br></div><div><br></div><div>
in line 119 (before the beginning of the while loop for number of iterations) of:</div><div><br></div><div> Modules/Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.hxx<br></div><div><br></div>
<div><br></div><div><br></div><div>and then add:</div><div><br></div><div> progress.CompletedPixel() ;</div><div><br></div><div>in line 167 (before closing the while loop for iterations) of the same file.</div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.hxx#L167">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.hxx#L167</a><br>
</div><div><br></div><div><br></div><div><br></div><div>It will also need the #include for the ProgressReporter class.</div><div><br></div><div><br></div><div><br></div><div> Luis</div><div><br></div><div><br></div><div>
<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 9:26 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am wrapping InvertDisplacementFieldImageFilter in SimpleITK and I noticed some deficiencies for an well behaved ITK filter.<br>
<br>
1) The current iteration and the number of elapsed iterations are not exposed<br>
2) There is no progress, I'd expect an iteration event along with the progress to the max number of iterations.<br>
<br>
Any thoughts on this?<br>
<br>
Thanks,<br>
Brad<br>
_______________________________________________<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>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</blockquote></div><br></div>