[Insight-developers] itkStandardDeviationProjectionImageFilter changing orientation?

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Nov 10 06:05:50 EST 2009


Le 10 nov. 09 à 10:44, Richard Beare a écrit :

> Hi,

Hi Richard,

> I'm using this filter to compute standard deviation along the time
> axis of a 4d image. The problem I've struck is that the output image
> seems to have a different image orientation:
>
> Input nifti orientation:
>
> qform_name     Aligned Anat
> qform_code     2
> qto_xyz:1      -0.279531  -0.000000  6.079300  6.486117
> qto_xyz:2      -1.138048  -0.000000  -1.493219  150.452591
> qto_xyz:3      -0.000000  1.171875  0.000000  -148.828125
> qto_xyz:4      0.000000  0.000000  0.000000  1.000000
> qform_xorient  Anterior-to-Posterior
> qform_yorient  Inferior-to-Superior
> qform_zorient  Left-to-Right
> sform_name     Scanner Anat
> sform_code     1
> sto_xyz:1      -0.279531  -0.000000  6.079300  6.486117
> sto_xyz:2      -1.138048  -0.000000  -1.493219  150.452591
> sto_xyz:3      -0.000000  1.171875  0.000000  -148.828125
> sto_xyz:4      0.000000  0.000000  0.000000  1.000000
> sform_xorient  Anterior-to-Posterior
> sform_yorient  Inferior-to-Superior
> sform_zorient  Left-to-Right
> file_type      NIFTI-1+
> file_code      1
>
>
> Output nifti orientation:
>
> qto_xyz:1      -1.171875  0.000000  0.000000  6.486117
> qto_xyz:2      0.000000  -1.171875  0.000000  150.452591
> qto_xyz:3      0.000000  0.000000  6.260000  -148.828125
> qto_xyz:4      0.000000  0.000000  0.000000  1.000000
> qform_xorient  Right-to-Left
> qform_yorient  Anterior-to-Posterior
> qform_zorient  Inferior-to-Superior
> sform_name     Scanner Anat
> sform_code     1
> sto_xyz:1      -1.171875  0.000000  0.000000  6.486117
> sto_xyz:2      0.000000  -1.171875  0.000000  150.452591
> sto_xyz:3      0.000000  0.000000  6.260000  -148.828125
> sto_xyz:4      0.000000  0.000000  0.000000  1.000000
> sform_xorient  Right-to-Left
> sform_yorient  Anterior-to-Posterior
> sform_zorient  Inferior-to-Superior
> file_type      NIFTI-1+
> file_code      1
> descrip
>
> Any suggestions?


I only see the origin and the spacing copied in  
GenerateOuputInformation() of itk::ProjectionImageFilter. I guess that  
the orientation should be copied as well.
Is there something else which should be copied?

Can you file a bug in ITK bugtracker?

Thanks,

Gaëtan

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20091110/c6524325/attachment.pgp>


More information about the Insight-developers mailing list