The upsampling and downsampling is unnatural. As it uses (current_size-1)/(desired_size-1). This is strange. If one has a 4x4 image with spacing 1/3 it will become a spacing of 1 one upsampled to 2x2 instead of 2/3. To properly support this an origin should be introduced.
The upsampling and downsampling is unnatural. As it uses (current_size-1)/(desired_size-1). This is strange. If one has a 4x4 image with spacing 1/3 it will become a spacing of 1 one upsampled to 2x2 instead of 2/3. To properly support this an origin should be introduced.