Center-of-Imaging-Biomarker-Development / chp_seg

Segmentation tool for the delineation and volumetric quantification of the choroid plexus
6 stars 1 forks source link

chp_mask.nii.gz file error #3

Closed Luoyu-Wang closed 1 month ago

Luoyu-Wang commented 1 month ago

Hi! We have used version 1.0.1 of the Docker to process T1 images and have generated a chp_mask.nii.gz file. However, we are unable to open or view this file with tools like MRICron, SPM, etc. This issue did not occur with version 1.0.0, where everything worked fine.

Could you please provide guidance or a solution for this problem?

CenterImagingBiomarkerDevelopment commented 1 month ago

Hello Luoyu-Wang,

You should be able to load the segmentation map on any MRI visualization software. I tested it using ItkSNAP, FSLeyes, MRICron, and Slicer.

However, with the new update of the software, the first step involving rigid registration had sub-optimal parameters leading to the misalignment of the image. This could explain why you had an empty segmentation mask.

Can you try to re-download the docker? docker pull kilianhett/chp_seg:1.0.1 and try it again.

Please let me know if it solves your problem.

Best, Kilian

Luoyu-Wang commented 1 month ago

Hi, Here is my data and segmentation. We update the images but it appears that the errors still persist.

n4oS0001.nii.gz n4oS0001_chp_mask.nii.gz Here is a screenshot of the error report error.zip

CenterImagingBiomarkerDevelopment commented 1 month ago

Thank you for sharing your files with me.

I was able to open them using itksnap (see screenshot). I believe the issue comes from the format of voxel, here in long integer, which seems incompatible with your system (but also sub-optimal for storage purposes). I pushed a correction that fixed it, the values are now encoded on 8 bits as unsigned integers.

Could you please re-download the last version of the docker? ("docker pull kilianhett/chp_seg:1.0.1")

Screenshot 2024-07-22 at 8 56 01 AM
Luoyu-Wang commented 1 month ago

Thank you for your help, and the problem has been solved.