-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
There is something wrong about the ProstateX-0142 Finding 3 geometry #9
Comments
Thank you for letting me know. I will look into it as soon as possible. |
Sorry for the wait. The mask of finding3 for the ADC map in patient 0142 should now be fixed. I can confirm the issue of the "flipped" arrays for ADC as well, if you have already scripted a fix, can I ask you to perform a pull request and upload the corrected files (including the new mask for patient 0142). This would be of great help in speeding up the fix. |
Thank you for the confirmation. I'll upload my project in a couple of months, and could perform a pull request then. For now i've only adjusted the bounding box, not the mask. |
The issues with ADC maps are probably due to the process used to annotate lesions. DICOM files were first converted to the NII format using dcm2niix, segmented on ITKSNAP, then flipped back to the DICOM geometry using nibabel and numpy (flipping along the Y axis if I remember correctly). |
I have updated the repository and readme with the masks for the NIFTI files. These provide a valid workaround for this issue (after converting the original DICOMs to NIFTI files using dcm2niix), and could be useful to fix the issue in and of itself. |
I believe that you can reverse what dcm2niix did with
Here's an image of proof of concept with the image that enliden1 mentioned: P.S. for people attempting to use dcm2nii, the exact command I used was:
|
Thank you for the contribution. I was flipping only one axis. I will test and implement this ASAP and upload the fixed files. I was waiting for the time to fix this issue prior to submitting the dataset to TCIA. |
Unfortunately the issue is more complex. The proposed solution causes the mask not to correspond to the lesion anymore. Currently, the only way to ensure lesions are correctly segmented is to convert the DICOM files to NIFTI using dcm2niix (there are the options used by me: dcm2niix -d 9 -z y -9). The issue also affects T2 files (lesion annotations are not correctly placed on DICOM files). |
For @wassname, your image overlay seems indeed correct, but I was unable to save it and not have the issue present in 3DSlicer (probably due to using the affine from the unflipped mask to save). Could you test your approach with lesion 1 from the first patient and upload the files? It is the case I am using for troubleshooting right now. |
Sure I will have a look today |
Here we are, this gist has links to my files, and example code to load them. I also tried using your dcm2niix command |
Hi!
Regarding the ADC mask for ProstateX-0142:
Finding3 (ProstateX-0142-Finding3-ep2d_diff_tra_DYNDIST_ADC0_ROI.nii) geometry does not correspond to Finding1, Finding2 or the DICOM file:
Also, the ADC masks array is "flipped" corresponding to the DICOM array for every patients -->
Mask: (84, 128, 19), DICOM: (128, 84, 19)
I'm applying transpose to the ADC mask array, so both array geometry corresponds to each other.
The text was updated successfully, but these errors were encountered: