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
Dose comparison parts in RT Slicer #7380
Comments
When I give the output of this MATLAB code to the 3D Slicer software in the dose comparison RT slicer module as a reference volume, this module does not work, which seems to be a problem with the file that I load from MATLAB as a reference volume: % Read an image % Convert the image to double precision % Apply the formula to each pixel value % Save the output in the form of a DICOM file |
To reproduce the crash we will need the data. Can you provide it? Is it all anonymized? If not, then can you reproduce the crash with publically available data? |
For reference https://discourse.slicer.org/t/issue-with-dose-comparison/32398/3 https://discourse.slicer.org/t/issue-in-dose-comparison-in-rt-slicer/32734 https://discourse.slicer.org/t/dose-comparison-parts-in-rt-slicer/32735 @Y-kiumarsi please do not post so aggressively, everyone in the community provides support from their own free time out of trying to be nice. Thank you |
I put the attached image in the code below in MATLAB and gave the output as a reference dose volume to RT Slicer: % Convert the image to double precision % Apply the formula to each pixel value % Save the output in the form of a DICOM file and rt-dose sagittal planar of TPS as evaluated dose volume 1.2.840.114358.189250942729016.20230802182207.11058345633664_planar_sagittal.zip Thank you for taking the time to help and accept my apologies for the previous posts |
I do not have Matlab, please provide only DICOM or nrrd. Also, give us a detailed list of steps you took before you experience the crash to facilitate reproducing it. Thanks. |
TIFF file format cannot store 3D data, as there is no standard way to store the image origin, spacing, and axis directions. Instead you can save your 3D array from Matlab into NRRD format using nrrdwrite.m. Make sure you set the IJK to LPS transform correctly (it specifies the image origin, spacing, and axis directions). |
thank you |
1.2.840.114358.189250942729016.20230814180808.15910414619830_planarcouch_sagittal.zip |
I looked at the data and I found various issues:
So even if there was no crash, comparison would not be possible (see first point above). I could potentially fix the crash, but it wouldn't help your case. Since you use Matlab to begin with, I suggest using some Matlab-based gamma algorithm, for example this one: https://github.com/mwgeurts/gamma For the record, this is the call stack for the crash: It seems that there is an issue with converting the VTK image data to ITK format so that the gamma algorithm in Plastimatch can be run. The image whose conversion crashes is the non-RT one (modality: |
Summary
How to fill the dose comparison parts in RT Slicer? I mean, how much should I place in Mask structure, Gamma volume and other parts?
When I use RT Slicer from dose comparison, after clicking on dose comparison, the software closes after a few seconds and does not work. I am sending you a picture as an attachment, after a few seconds the software closes. My reference dose was the output from MATLAB, which I somehow converted into dose format so that the software for dose measurement accepts it as the dose volume, and I compared it with the dose that I obtained from TPS and the rest of the parts according to the image I filled.
I don't know if there is a problem in filling the dose comparison fields or if it is another problem
Environment
Operating system: windows 10
Slicer version: 5.4.0
The text was updated successfully, but these errors were encountered: