]> Creatis software - clitk.git/commitdiff
Change behavior of clitkCropImage with like option
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 15 Nov 2018 15:24:18 +0000 (16:24 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 15 Nov 2018 15:24:18 +0000 (16:24 +0100)
Before, if we cropped an image like another, the output's origin was set at the origin of the input.
But we prefer to keep the registration correctly, so we prefer to have an output's origin defined to still have the registration between the output and the input.
This is the normal behavior of the itk::PasteImageFilter.

I removed the SetNumberOfRequiredInputs to avoid this error: PasteImageFilter(0x1927770): At least 2 of the first 2 indexed inputs are required but only 1 are specified. The required inputs are expected to be the first inputs.

I add the updateOrigin flag to keep the previous behavior. If the flag is set to On (default is off), the origin of the output is set to the same origin than the input.

I update the description of the filte about this origin managment


No differences found