Im quite new to simpleITK so this is perhaps simple. But I just don’t get it. When I look at the progress of a filter, (I register a Command so I can follow the progress) it behaves strangely.
For most filters like the MedianImageFilter it progress from 0 to almost 1 and the last progress it reports is almost 0, e.g. 3.23634594678879E-08. This messes with my progress bar that I display, but is fairly easy to solve with a nondecreasing progress.
But for some other filters the progress is even stranger, so far only detected it for DiscreteGaussianImageFilter. (Have only tried a few filter so far.) It counts its progress to 0.3333 three times instead of reporting the interval 0-1. And after each 33% interval it also reports 3.23634594678879E-08.
So am I missing something? Especially for the DiscreteGaussianImageFilter. Is there some more Progress variable subdividing the progress into steps that I need to keep track of?