Skip to content

BUG: resample filter no longer triggers unnecessary exception - #958

Merged
dzenanz merged 1 commit into
InsightSoftwareConsortium:masterfrom
dzenanz:fixResampleException
May 24, 2019
Merged

dzenanz merged 1 commit into
InsightSoftwareConsortium:masterfrom
dzenanz:fixResampleException

Conversation

@dzenanz

@dzenanz dzenanz commented May 23, 2019

Copy link
Copy Markdown
Member

If interpolator's GetRadius required an image, and it was not set
outside of resample filter, an exception Input image required! was raised.

PR Checklist

@blowekamp

Copy link
Copy Markdown
Member

LGTM

@thewtex

thewtex commented May 23, 2019

Copy link
Copy Markdown
Member

A number of failing resampling tests.

If interpolator's GetRadius required an image, and it was not set
outside of resample filter, an exception "Input image required!" was raised.
@dzenanz
dzenanz force-pushed the fixResampleException branch from c77e275 to f8f9ed2 Compare May 23, 2019 18:22
@dzenanz

dzenanz commented May 23, 2019 •

Copy link
Copy Markdown
Member Author

I was too quick with the initial PR. Now the tests pass on my computer.

@romangrothausmann romangrothausmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks @dzenanz for this PR. It solves the problem in case streaming is not used:
https://gitlab.com/romangrothausmann/ITK-CLIs/-/jobs/218644428
(the test however still fails due to a new error when employing streaming (region not within buffered region)).

@dzenanz

dzenanz commented May 24, 2019

Copy link
Copy Markdown
Member Author

Unless size of the image along 3rd dimension is 18446744073709551596 (buffered region being only 60 pixels of that), that is a different bug.

@dzenanz
dzenanz merged commit be9bf07 into InsightSoftwareConsortium:master May 24, 2019
@romangrothausmann

Copy link
Copy Markdown
Member

that is a different bug.

That's what I mean.

@dzenanz
dzenanz deleted the fixResampleException branch May 24, 2019 13:18
@thewtex

thewtex commented May 24, 2019

Copy link
Copy Markdown
Member

@dzenanz can this please also be open / merged into the release branch?

@dzenanz

dzenanz commented May 24, 2019

Copy link
Copy Markdown
Member Author

@thewtex done in #959.

@romangrothausmann

Copy link
Copy Markdown
Member

Just as a reference: This PR refers to: #668 (comment)

hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…mpleException

BUG: resample filter no longer triggers unnecessary exception
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 12, 2026
…mpleException

BUG: resample filter no longer triggers unnecessary exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants