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

Quality problem - image with 4 dimension sub-cal123_ses-M12_STIR.nii.gz #70

Open
plbenveniste opened this issue Oct 25, 2023 · 2 comments
Assignees

Comments

@plbenveniste
Copy link
Collaborator

Reporting this issue here for documentation in the CanProCo repo.

Original issue (@NathanMolinier):

For some subjects in the session ses-M12 niftii images have 4 dimensions:
sub-cal123_ses-M12_STIR.nii.gz

Response from @valosekj:

It seems that this particular 4D image contains two consecutively acquired 3D volumes (notice the slight motion between the volumes):
277835421-c09b5b9e-fa61-419d-a72f-73f24458fad4
Possible solutions:

  • split the 4D image into two 3D images (e.g., using sct_image) and use only one of them
  • average the 4D image across the fourth dimension (time). But this is probably suboptimal since the resulting image might be blurred due to the movement between the 3D volumes.
@plbenveniste
Copy link
Collaborator Author

Great catch, @NathanMolinier !
This explains why the nnUNet inference was crashing.

After running a script on the entire PSIR and STIR dataset to check if other images had 4 dimensions, I saw that this was the only problematic image.

Adding this file to the exclude_M0_M12_comparison.yml file for the current analysis before deciding on a solution for this problem.

@plbenveniste plbenveniste self-assigned this Oct 25, 2023
@jcohenadad
Copy link
Member

 split the 4D image into two 3D images (e.g., using sct_image) and use only one of them

I would go with this.

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