Understanding DICOM image attributes to get axial/coronal/sagittal cuts

后端 未结 4 980
别跟我提以往
别跟我提以往 2021-02-10 12:24

I have to write a program in c# able to parse DICOM and display axial, coronal and sagittal cuts.

Seems like it\'s a lot of work, but I have to do it so !

Big fi

4条回答
  •  你的背包
    2021-02-10 12:47

    This question is already 3 y.o., but maybe my answer will be helpful for somebody.

    @user6867490 has already referenced to the beautiful article by Roni Zaharia.

    The only thing that I would like to add is: you can simply get access to the Image Orientation (Patient), Tag (0020,0037) by writing

    f = dicom.read_file(dicom_file_name)
    f.ImageOrientationPatient
    

    If you'll obtain:

    ['1', '0', '0', '0', '0', '-1'] you are dealing with Coronal plane view

    ['0', '1', '0', '0', '0', '-1'] you are dealing with Sagittal plane view

    ['1', '0', '0', '0', '1', '0'] you are dealing with Axial plane view

    In my case, there was a dataset containing a few images of Sagittal and lots of Axial views (which I needed actually). So, I simply iterated through the whole dataset and did a simple logical comparison to filter out all the saggitals.

提交回复
热议问题