Open rijobro opened 5 years ago
+1. I also call reg_resample
after registering because of this bug.
any word on this one? I'm ok to try and figure it out with a bit of help...
For anyone who has the same question, I believe this is actually the intended behavior as mentioned in the help "Interpolation order to use internally to warp the floating image". Interp will only be used to do internal interpolation not to get the final warped image. You can make changes in https://github.com/KCL-BMEIS/niftyreg/blob/master/reg-lib/_reg_aladin.cpp#L663 to do whatever you want.
I've noticed that when I set interpolation order of
reg_aladin
to nearest neighbour or trilinear, the output image which was initially non-negative, may contain negatives. To me, this implied that the interpolation was likely cubic.I've created a small bash test to illustrate my point. It does the following:
moved
imagereg_aladin
with NN interpolationreg_resample
for different types of interpolation.Here is the output:
Have I misunderstood something or is this a bug?
The script is as follows: