You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong output when resampling with Gaussian interpolation when employing streaming #1011
Since #988 was resolved with #998, it is now possible to resample with Gaussian interpolation when employing streaming, but the output differs from the result when streaming is not used.
It turns out that when the streaming and the non-streaming are scoped (romangrothausmann/ITK-CLIs@eb81cb5), the resulting outputs (RAW from MHD) differ to each other but have the same MD5 as obtained with resamlple.
Expected behavior
The output from the resample filter should be the same no matter if streaming is used or not , this should hold for all available interpolators.
@dzenanz@blowekamp
Not sure though why the version without scoping behaves differently. Could it be that the filter is not re-executed even though it has filter->ReleaseDataFlagOn();? Without that it would be necessary to outdate the filter (with input->Modified();) to have it re-execute for the streaming.
Minimal modification of the test program to reproduce the problem is just to write once per call using an extra parameter to define streaming or not: romangrothausmann/ITK-CLIs@b5cfc69
Activity
romangrothausmann commentedon Jun 12, 2019
@dzenanz @blowekamp
Not sure though why the version without scoping behaves differently. Could it be that the filter is not re-executed even though it has
filter->ReleaseDataFlagOn();? Without that it would be necessary to outdate the filter (withinput->Modified();) to have it re-execute for the streaming.romangrothausmann commentedon Jun 12, 2019
Working on a test for the ITK test-suite:
https://github.com/romangrothausmann/ITK/tree/TestResampleSDI4GaussInterpolator
romangrothausmann commentedon Jun 12, 2019
Minimal modification of the test program to reproduce the problem is just to write once per call using an extra parameter to define streaming or not: romangrothausmann/ITK-CLIs@b5cfc69
dzenanz commentedon Jun 12, 2019
@thewtex can you tackle this? test.cxx is an easy way to reproduce the problem.
thewtex commentedon Jun 20, 2019
Yes, I will take a look.
ENH: Add streaming-equivalence test for GaussianInterpolateImageFunction
ENH: Add streaming-equivalence test for GaussianInterpolateImageFunction
ENH: Add streaming-equivalence test for GaussianInterpolateImageFunction
ENH: Add streaming-equivalence test for GaussianInterpolateImageFunction