Skip to content

Different sform between native image and derivatives #77

@jcohenadad

Description

@jcohenadad

Data version:

sform is different between the image and its derivatives. Example for sub-P001:

sub-P001_UNIT1.nii.gz

qform_name	Scanner Anat
qform_code	1
qto_xyz:1	0.000000 0.000000 1.000000 -89.557289 
qto_xyz:2	-1.000000 0.000000 0.000000 150.847916 
qto_xyz:3	0.000000 -1.000000 0.000000 120.816551 
qto_xyz:4	0.000000 0.000000 0.000000 1.000000 
qform_xorient	Anterior-to-Posterior
qform_yorient	Superior-to-Inferior
qform_zorient	Left-to-Right
sform_name	Scanner Anat
sform_code	1
sto_xyz:1	-0.000000 -0.000000 1.000000 -89.557289 
sto_xyz:2	-1.000000 -0.000000 -0.000000 150.847916 
sto_xyz:3	0.000000 -1.000000 0.000000 120.816551 
sto_xyz:4	0.000000 0.000000 0.000000 1.000000 
sform_xorient	Anterior-to-Posterior
sform_yorient	Superior-to-Inferior
sform_zorient	Left-to-Right

sub-P001_UNIT1_lesion-manualNeuroPoly.nii.gz

qform_name	Scanner Anat
qform_code	1
qto_xyz:1	0.000000 0.000000 1.000000 -89.557289 
qto_xyz:2	-1.000000 0.000000 0.000000 150.847916 
qto_xyz:3	0.000000 -1.000000 0.000000 120.816551 
qto_xyz:4	0.000000 0.000000 0.000000 1.000000 
qform_xorient	Anterior-to-Posterior
qform_yorient	Superior-to-Inferior
qform_zorient	Left-to-Right
sform_name	Scanner Anat
sform_code	0
sto_xyz:1	0.000000 0.000000 0.000000 0.000000 
sto_xyz:2	0.000000 0.000000 0.000000 0.000000 
sto_xyz:3	0.000000 0.000000 0.000000 0.000000 
sto_xyz:4	0.000000 0.000000 0.000000 1.000000 
sform_xorient	Unknown
sform_yorient	Unknown
sform_zorient	Unknown

This results in overlay issue when visualizing with FSLeyes (which uses sform):
Screen Shot 2023-09-16 at 12 00 05 PM

Given that ground truths were made with FSLeyes, I am wondering why we did not observe this issue earlier? Maybe the derivatives data changed at some point?

@Nilser3 how are you able to observe the data and derivatives properly aligned in FSLeyes (eg as in #76)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions