Repository navigation
ENH: Expand ResampleImageFilter requested region by interpolator domain - #668
Conversation
96c826e to
aede972
Compare
aede972 to
17d23c4
Compare
|
Many thanks @thewtex for tackling this problem. I had a look at the failing tests and noticed that the comparison with the baseline is disabled in current master: ITK/Modules/Filtering/ImageGrid/test/CMakeLists.txt Lines 271 to 280 in 651ee50 It is not clear to me why and what was the last reason for that decision since they use linear interpolation which already works with itkResampleImageTest7.So I'd say that the failure of itkResampleImageTest7 is actually the critical one,and comparison with the baseline itkResampleImageTest2Streaming should be tested separately on master (and should succeed already if itkResampleImageTest7 does), since the MHAs for the expected outcome were created without employing streaming.
|
N-Dekker
left a comment
There was a problem hiding this comment.
Minor suggestions only. :-)
17d23c4 to
3363d4a
Compare
|
I applied Niels' suggestions and rebased. Doing this to refresh CI results. PR is not yet finished. |
|
Separating test enablement into #872. |
|
I have worked on the interpolation in the |
3363d4a to
e64d922
Compare
|
This passes tests on my computer, and is ready for review. |
dzenanz
left a comment
There was a problem hiding this comment.
LGTM. It makes no sense for me to "approve" because I last touched the PR.
|
Looks pretty good to me. Just a couple questions about how best to indicate that an interpolator needs the whole image. |
When streaming during resampling, the requested region is extended by the domain of the interpolator. This is especially important for consistent resampling results with interpolators other than the nearest neighbor or linear interpolator, which use many surrounding pixels to determine their value. A new, abstract GetRadius method is added to InterpolateImageFunction. This method is used by the ResampleImageFilter to extend its required input region. Suggested-by: Bradley Lowekamp <[email protected]>
|
My next force-push applies Brad's suggestions. I am waiting for current CI results to come in before pushing this next amend. Edit: the CI came back green. |
e64d922 to
e4003fc
Compare
thewtex
left a comment
There was a problem hiding this comment.
LGTM -- thanks @dzenanz @blowekamp !
…e-interpolator-domain ENH: Expand ResampleImageFilter requested region by interpolator domain
…e-interpolator-domain ENH: Expand ResampleImageFilter requested region by interpolator domain
When streaming during resampling, the requested region is extended by
the domain of the interpolator. This is especially important for
consistent resampling results with interpolators other than the nearest
neighbor or linear interpolator, which use many surrounding pixels to
determine their value.
A new, abstract GetRadius method is added to InterpolateImageFunction.
This method is used by the ResampleImageFilter to extend its required
input region.
Suggested-by: Bradley Lowekamp [email protected]
PR Checklist