elastix
elastix copied to clipboard
Add TransformixFilter:: member function equivalent to ITK Resampler SetOutputParametersFromImage
Request from @ntatsisk
Thanks @N-Dekker. I noticed that ITK Resampler has also a function to set a reference image: https://github.com/InsightSoftwareConsortium/ITK/blob/f0d342e0b81e690194cd3fe993316bca7570402b/Modules/Filtering/ImageGrid/include/itkResampleImageFilter.h#L262. When set, it requires also to make user of the flag UseReferenceImage
.
At first glance it appears equivalent to SetOutputParametersFromImage
but maybe a more careful look is required.
Having discussed at today's weekly internal elastix sprint with Marius (@mstaring), Stefan (@stefanklein), and Konstantinos (@ntatsisk), we think SetOutputDomainFromImage
would be a good name for such a member function. The term "Domain" would then refer the five image properties, Direction, Index, Size, Spacing, and Origin together.