[Vv] clitkResampleImage
Benoît Presles
benoit.presles at u-bourgogne.fr
Mon Jul 24 18:38:36 CEST 2017
Dear vv users,
When I use clitkResampleImage to resample the image result.nii like the
image SUVImg.nii (clitkResampleImage -i result.nii -l SUVImg.nii -o
resampleCLITK.nii), the origin of the resampleCLITK image is not the
same as the SUVImg image
(https://cloud.u-bourgogne.fr/index.php/s/LMzrtE1HvegjIaY).
I did not expect this behaviour especially with the "like option".
It is because line 231 in clitkResampleImageWithOptionsFilter.txx, you
modify the output origin:
// Compute origin based on image corner
for(unsigned int i=0; i<OutputImageType::ImageDimension; i++) {
m_OutputOrigin[i] -= 0.5 * input->GetSpacing()[i];
m_OutputOrigin[i] += 0.5 * m_OutputSpacing[i];
}
Is there any reason?
Thanks for your help,
Cheers,
Ben
More information about the vv
mailing list