Brad,

It looks like it may help to add something like:

    ProgressReporter progress( this, 0, this->m_MaximumNumberOfIterations );

in line 119  (before the beginning of the while loop for number of
iterations) of:


 
Modules/Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.hxx



and then add:

    progress.CompletedPixel() ;

in line 167  (before closing the while loop for iterations) of the same
file.
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/DisplacementField/include/itkInvertDisplacementFieldImageFilter.hxx#L167



It will also need the #include for the ProgressReporter class.



    Luis







On Mon, Dec 9, 2013 at 9:26 AM, Bradley Lowekamp <[email protected]>wrote:

> Hello,
>
> I am wrapping InvertDisplacementFieldImageFilter in SimpleITK and I
> noticed some deficiencies for an well behaved ITK filter.
>
> 1) The current iteration and the number of elapsed iterations are not
> exposed
> 2) There is no progress, I'd expect an iteration event along with the
> progress to the max number of iterations.
>
> Any thoughts on this?
>
> Thanks,
> Brad
> _______________________________________________
> 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
> _______________________________________________
> Community mailing list
> [email protected]
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
_______________________________________________
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

Reply via email to