Closed rhoadesScholar closed 2 years ago
Good catch.
To avoid interpolation border artifacts it might be better to shrink the provided roi by 1 voxel in setup
rather than doing an roi intersection which will still lead to border artifacts if the request happens to be at the boundary of what is provided.
Also I'm not completely clear on the purpose of ndim
, can you please update the docstring?
To avoid interpolation border artifacts it might be better to shrink the provided roi by 1 voxel in
setup
rather than doing an roi intersection which will still lead to border artifacts if the request happens to be at the boundary of what is provided.
The downside of this is that the Resample node can no longer be placed downstream of a RandomLocation node, because RandomLocation provides an (inf, inf, inf) shaped ROI, which breaks the setup.
To avoid interpolation border artifacts it might be better to shrink the provided roi by 1 voxel in
setup
rather than doing an roi intersection which will still lead to border artifacts if the request happens to be at the boundary of what is provided.The downside of this is that the Resample node can no longer be placed downstream of a RandomLocation node, because RandomLocation provides an (inf, inf, inf) shaped ROI, which breaks the setup.
Fixed (d092313)
Looks pretty good to me. If no one else has any comments I'll merge it tomorrow
Pre-Merge Checklist:
vX.Y-dev
)patch-X.Y.Z
)