lassoan / LabelmapToDICOMSeg

Script for converting labelmap volumes to DICOM segmentation objects
MIT License
0 stars 0 forks source link

labelmap volume to DICOMSeg for CT vertebrae #1

Open bhatrana opened 1 year ago

bhatrana commented 1 year ago

@lassoan I am trying to export labelmap volume to DICOMSeg for CT vertebrae. I am little bit confused with segmentDescription as mentioned in convert.py code. How you defined those segment part ? The format of data which I would like to export is something like this,

image

lassoan commented 1 year ago

Segment description comes from standard DICOM terminology. The DICOM standard mostly uses SNOMED-CT codes. You can find the codes in SNOMED-CT, in the DICOM standard, in the DCMQI project, or in Slicer. Probably the simplest is to use the terminology selector in Slicer (available by double-clicking the colored box in the segment list) to select a term and then save the segmentation as .seg.nrrd file. You'll find the codes in the file header.

bhatrana commented 1 year ago

@lassoan Thank you. My plan is to convert label map segmentation of vertebrae to DICOM seg. Initial loading of data is in figure 1. For the testing purpose, all segments(vertebra) are merged into one segment of spine.

image

After running the code, DICOMseg of Labelmap volume is shown in figure which is not as expected. Figure 2, image

Any thoughts ?