e0404 / matRad

An open source multi-modality radiation treatment planning sytem developed by e0404 @ DKFZ
http://www.matRad.org
Other
227 stars 176 forks source link

How to change default cst cell into our own data ? #383

Closed P705 closed 4 years ago

P705 commented 5 years ago

Hello

I'm a freshman of radiotherapy field. So I don't understand how to change the code related to the cst cell information.

Actually, i want create my own cell and use in matrad. How can i do this work ?

Thanks

wahln commented 5 years ago

Hi,

the cst holds information about organ and target segmentation, i.e., their names, type (OAR/TARGET), list of voxel indices in the ct, and the set of optimization objectives / constraints. Some additional information for display and biology is also included (see also our wiki page https://github.com/e0404/matRad/wiki/The-cst-cell).

Do you want to create your own organ / target segmentation from scratch or what is your goal?

P705 commented 5 years ago

I have series of dicom file and wanna load them in the matRad.
How can i create organ and target segmentation ? create my own cst struct and analysis the diom data.

wahln commented 5 years ago

Do you have your structures as DICOM (RTStruct)? Or do you only have your CT? Our DICOM importer (matRad_importDicomGUI.m) should be able to import Segmentations from RTStruct. If you want to delineate/create them from scratch, matRad currently does not feature a graphical way to delineate your own volumes. However, https://github.com/e0404/matRad/blob/master/examples/matRad_example1_phantom.m gives an example to set up ct and cst with Target and OAR from scratch based on a simple phantom.

P705 commented 5 years ago

Can you explain about RTStruct and how can i create that ?

wahln commented 5 years ago

RTStruct is a DICOM file specification for storing segmentations. If you don't have that with your DICOM data, you would need other software that allows you to delineate structures and export them to RTStruct (maybe MITK or SlicerRT can do this). Or, alternatively, binary masks (i.e. image cubes in ct resolution that have ones where the volume is supposed to be, and zeros otherwise) which can be imported manually in Matlab or in nrrd format with our binary file import functions (in folder IO).

P705 commented 5 years ago

Hi I have a series of DICOM with RTStruct, but can't impotrt them in the matRad. The window open for importing dicom, don't have any key for do that.

wahln commented 5 years ago

Before I continue to help: Is your uploaded DICOM-data appropriately anonymized? If not, it needs to be deleted immediately!! We can not work with and share non-anonymized patient data.

For now I can only give a generic response that could help you: you need to click the Patient ID at least once to show up all respective SOPInstanceUIDs in the selected folder.

P705 commented 5 years ago

I delete the uploaded data as you say. But, I don't understand your explanation about click on patient data and all respective SOPInatanxeUIDs. Please, more explain about this subject.

mingersming commented 5 years ago

It takes 6 clicks to import your own DICOM files.

Screenshot - 28 11 2019 , 10_32_35

At step 2 you have to specify the folder where your DICOM files are located. At step 6 you save the DICOM files as a *.mat file.

This file can now be loaded with matRad ("Load *.mat data") for further purpose.

markbangert commented 4 years ago

Thank you @mingersming for this brilliant explanation :)