[Vv] clitkMergeSequence

Thomas BAUDIER thomas.baudier at creatis.insa-lyon.fr
Wed Feb 13 10:29:04 CET 2019


Hi Benoit,

On 2019-02-12 18:37, Benoît Presles wrote:
> Hello Thomas,
> 
> I am trying to use clitkMergeSequence with a stack of double 2D images
> of size 144x144x1 pixels. The resulting image is a 3D float image...
> 
> I have checked the source code and in particular
> clitkMergeSequenceGenericFilter and indeed with one component images,
> the input pixel type is taken into account only if it is short or
> unsigned_char. Is there any reason for that ?

Apparently, there is no reason. So I modify it, Thank you for your 
remark.
https://github.com/open-vv/vv/commit/e6929caa9906837ade57b84706fe0a38529dc93a

> 
> At last, in the help, it is written that "-s, --spacing=DOUBLE Spacing
> for the new dimension  (default=`1')". In my case, I did not specify
> any value and the spacing is 4, which is the value I expected.

Your inputs are 3D images (with a size for the third dimension equal to 
1), so the output is a 4D image.
If you open your output with vv, you cannot see the last dimension 
because when the 4th dimension is 1, the image is read like a 3D image.
You can see the new dimension displaying the mhd text file.
And the spacing of the 4th dimension is given by the option spacing.

Regards
Thomas

> 
> 
> Thanks for your help,
> Ben
> 
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> https://www.creatis.insa-lyon.fr/mailman/listinfo/vv


More information about the vv mailing list