Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected pixels in lesion and SC segmentations #76

Closed
Nilser3 opened this issue Sep 16, 2023 · 2 comments
Closed

Unexpected pixels in lesion and SC segmentations #76

Nilser3 opened this issue Sep 16, 2023 · 2 comments

Comments

@Nilser3
Copy link
Contributor

Nilser3 commented Sep 16, 2023

In some subjects of the basel-mp2rage dataset there are pixels inconsistent with the segmentations

sub-P047 :

point_47

An outer pixel is observed at the coordinates (108, 115, 116)

UNIT1 header:

sct_image -i sub-P047_UNIT1.nii.gz -header
--
Spinal Cord Toolbox (6.0)

sct_image -i sub-P047_UNIT1.nii.gz -header
--

sizeof_hdr      348
data_type       UINT16
dim             [3, 240, 256, 176, 1, 1, 1, 1]
vox_units       mm
time_units      s
datatype        512
nbyper          2
bitpix          16
pixdim          [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0]
vox_offset      352
cal_max         0.000000
cal_min         0.000000
scl_slope       1.000000
scl_inter       0.000000
phase_dim       0
freq_dim        0
slice_dim       0
slice_name      Unknown
slice_code      0
slice_start     0
slice_end       0
slice_duration  0.000000
toffset         0.000000
intent          Unknown
intent_code     0
intent_name
intent_p1       0.000000
intent_p2       0.000000
intent_p3       0.000000
qform_name      Scanner Anat
qform_code      1
qto_xyz:1       0.000000 0.000000 1.000000 -88.823051
qto_xyz:2       -1.000000 0.000000 0.000000 142.514359
qto_xyz:3       0.000000 -1.000000 0.000000 106.335777
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 -88.823051
sto_xyz:2       -1.000000 -0.000000 -0.000000 142.514359
sto_xyz:3       0.000000 -1.000000 0.000000 106.335777
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
file_type       NIFTI-1+
file_code       1
descrip         MRtrix version: 3.0_RC3-91-gd2cd716d
aux_file

Lesion segmentation header (manualNeuroPoly mask) :

sct_image -i sub-P047_UNIT1_lesion-manualNeuroPoly.nii.gz -header
--
Spinal Cord Toolbox (6.0)

sct_image -i sub-P047_UNIT1_lesion-manualNeuroPoly.nii.gz -header
--

sizeof_hdr      348
data_type       UINT16
dim             [3, 240, 256, 176, 1, 1, 1, 1]
vox_units       mm
time_units      Unknown
datatype        512
nbyper          2
bitpix          16
pixdim          [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0]
vox_offset      352
cal_max         0.000000
cal_min         0.000000
scl_slope       1.000000
scl_inter       0.000000
phase_dim       0
freq_dim        0
slice_dim       0
slice_name      Unknown
slice_code      0
slice_start     0
slice_end       0
slice_duration  0.000000
toffset         0.000000
intent          Unknown
intent_code     0
intent_name
intent_p1       0.000000
intent_p2       0.000000
intent_p3       0.000000
qform_name      Scanner Anat
qform_code      1
qto_xyz:1       0.000000 0.000000 1.000000 -88.823051
qto_xyz:2       -1.000000 0.000000 0.000000 142.514359
qto_xyz:3       0.000000 -1.000000 0.000000 106.335777
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      Unknown
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
file_type       NIFTI-1+
file_code       1
descrip
aux_file

Lesion segmentation header (manualHaris mask) :

sct_image -i sub-P047_UNIT1_lesion-manualHaris.nii.gz -header
--
Spinal Cord Toolbox (6.0)

sct_image -i sub-P047_UNIT1_lesion-manualHaris.nii.gz -header
--

sizeof_hdr      348
data_type       UINT16
dim             [3, 240, 256, 176, 1, 1, 1, 1]
vox_units       mm
time_units      Unknown
datatype        512
nbyper          2
bitpix          16
pixdim          [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0]
vox_offset      352
cal_max         0.000000
cal_min         0.000000
scl_slope       1.000000
scl_inter       0.000000
phase_dim       0
freq_dim        0
slice_dim       0
slice_name      Unknown
slice_code      0
slice_start     0
slice_end       0
slice_duration  0.000000
toffset         0.000000
intent          Unknown
intent_code     0
intent_name
intent_p1       0.000000
intent_p2       0.000000
intent_p3       0.000000
qform_name      Scanner Anat
qform_code      1
qto_xyz:1       0.000000 0.000000 1.000000 -88.823051
qto_xyz:2       -1.000000 0.000000 0.000000 142.514359
qto_xyz:3       0.000000 -1.000000 0.000000 106.335777
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      Unknown
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
file_type       NIFTI-1+
file_code       1
descrip
aux_file

sub-P106 :

point_106

Some pixels are observed on the outside of the SC in the coordinates: (112, 253, 81)

UNIT1 header:

sct_image -i sub-P106_UNIT1.nii.gz -header
--
Spinal Cord Toolbox (6.0)

sct_image -i sub-P106_UNIT1.nii.gz -header
--

sizeof_hdr      348
data_type       UINT16
dim             [3, 240, 256, 176, 1, 1, 1, 1]
vox_units       mm
time_units      s
datatype        512
nbyper          2
bitpix          16
pixdim          [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0]
vox_offset      352
cal_max         0.000000
cal_min         0.000000
scl_slope       1.000000
scl_inter       0.000000
phase_dim       0
freq_dim        0
slice_dim       0
slice_name      Unknown
slice_code      0
slice_start     0
slice_end       0
slice_duration  0.000000
toffset         0.000000
intent          Unknown
intent_code     0
intent_name
intent_p1       0.000000
intent_p2       0.000000
intent_p3       0.000000
qform_name      Scanner Anat
qform_code      1
qto_xyz:1       0.000000 0.000000 1.000000 -88.704819
qto_xyz:2       -1.000000 0.000000 0.000000 144.698792
qto_xyz:3       0.000000 -1.000000 0.000000 86.433739
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 -88.704819
sto_xyz:2       -1.000000 -0.000000 -0.000000 144.698792
sto_xyz:3       0.000000 -1.000000 0.000000 86.433739
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
file_type       NIFTI-1+
file_code       1
descrip         MRtrix version: 3.0_RC3-212-gf2ed89d8
aux_file

SC segmentation header:

sct_image -i sub-P106_UNIT1_label-SC_seg.nii.gz -header
--
Spinal Cord Toolbox (6.0)

sct_image -i sub-P106_UNIT1_label-SC_seg.nii.gz -header
--

sizeof_hdr      348
data_type       UINT16
dim             [3, 240, 256, 176, 1, 1, 1, 1]
vox_units       mm
time_units      Unknown
datatype        512
nbyper          2
bitpix          16
pixdim          [1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0]
vox_offset      352
cal_max         0.000000
cal_min         0.000000
scl_slope       1.000000
scl_inter       0.000000
phase_dim       0
freq_dim        0
slice_dim       0
slice_name      Unknown
slice_code      0
slice_start     0
slice_end       0
slice_duration  0.000000
toffset         0.000000
intent          Unknown
intent_code     0
intent_name
intent_p1       0.000000
intent_p2       0.000000
intent_p3       0.000000
qform_name      Scanner Anat
qform_code      1
qto_xyz:1       0.000000 0.000000 1.000000 -88.704819
qto_xyz:2       -1.000000 0.000000 0.000000 144.698792
qto_xyz:3       0.000000 -1.000000 0.000000 86.433739
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      Unknown
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
file_type       NIFTI-1+
file_code       1
descrip
aux_file

@jcohenadad
Copy link
Member

Before investigating this issue, I'd like to clarify #77

@Nilser3
Copy link
Contributor Author

Nilser3 commented Nov 10, 2023

Fixed and merged to the master in #265

@Nilser3 Nilser3 closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants