Skip to content

Wrong output when resampling with Gaussian interpolation when employing streaming #1011

Closed

Description

@romangrothausmann

Description

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.

Steps to Reproduce

Based on the (apparent) MWE from #998 (comment), I tried to reproduce the problems found with my resamlple ITK-CLI:
https://gitlab.com/romangrothausmann/ITK-CLIs/commits/debugGaussRes

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.

Versions

ITK @ 8d9f21d (#988)

Environment

DF from ITK-CLIs:
https://gitlab.com/romangrothausmann/ITK-CLIs/blob/eb81cb5ea63d3ac4edf0a97471ae776b129b0dee/Dockerfile

Activity

  1. added
    type:Bug
    on Jun 12, 2019
  2. romangrothausmann commented on Jun 12, 2019

    @romangrothausmann
    MemberAuthor

    @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.

  3. romangrothausmann commented on Jun 12, 2019

    @romangrothausmann
    MemberAuthor

    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

  4. dzenanz commented on Jun 12, 2019

    @dzenanz
    Member

    @thewtex can you tackle this? test.cxx is an easy way to reproduce the problem.

  5. self-assigned this
    on Jun 20, 2019
  6. thewtex commented on Jun 20, 2019

    @thewtex
    Member

    Yes, I will take a look.

  7. added this to the ITK v5.0.1 milestone on Jun 20, 2019
  8. modified the milestones: ITK v5.0.1, ITK v5.0.2 on Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:Bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions