mscipio / mscipio.github.io

0 stars 0 forks source link

post/read_dicom_files_in_python/ #4

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

How to read DICOM files into Python | Michele Scipioni

Research Associate @ IFC-CNR

https://mscipio.github.io/post/read_dicom_files_in_python/

Gresliebear commented 4 years ago

is the dicom package different or the same from pydicom package that exist now?

mscipio commented 4 years ago

Hi! The 'dicom' module no longer exists and it has been replaced by 'pydicom'. Most of what written in this article "should" probably still work for the new library, but I have checked it lately so I cannot be sure of that. If you try and what to give a feedback, feel free, and I may use it to update the text in the next future.

Gresliebear commented 4 years ago

Thank you for replying so fast or at all It means lot

On Mon, Jan 27, 2020 at 1:54 PM Michele Scipioni notifications@github.com wrote:

Hi! The 'dicom' module no longer exists and it has been replaced by 'pydicom'. Most of what written in this article "should" probably still work for the new library, but I have checked it lately so I cannot be sure of that. If you try and what to give a feedback, feel free, and I may use it to update the text in the next future.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mscipio/mscipio.github.io/issues/4?email_source=notifications&email_token=ADEMKYXD5S3MGPZB7IOKBC3Q74UXXA5CNFSM4KMF4OF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKAUL2Q#issuecomment-578897386, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEMKYSDVGXDGEDCCOMLJJLQ74UXXANCNFSM4KMF4OFQ .

serhatakay35 commented 2 years ago

hi, i want to know how i can get the HU values of CT (or the value in MR) dicom images in the pixeldata part of the read file. thnx in advance...

Gresliebear commented 2 years ago

you have to extract pixeldata lets say 2D numpy array then convert each pixel to HU.

https://www.researchgate.net/post/How_can_I_convert_pixel_intensity_values_to_housefield_CT_number

there's a load scan function that does conversion for you in this pastebin

https://pastebin.com/MXkpnAmq

serhatakay35 commented 2 years ago

thanks a lot Leslie i have been messing with dicom files and this info helped me a lot i've never read HU can be calculated as a linear reg equation with data from the dicom file i'm a medical doctor and a msc candidate @ data science. msc graduation project is about medical imaging and your linkedin page shows your primary work interest is also medical imaging. if there is anything i can help, i will be very glad best regards

serhat akay

3 Aralık 2021 06:09, "Leslie Wubbel" @. @*.**@*.***>)> yazdı: you have to extract pixeldata lets say 2D numpy array then convert each pixel to HU.

https://www.researchgate.net/post/How_can_I_convert_pixel_intensity_values_to_housefield_CT_number (https://www.researchgate.net/post/How_can_I_convert_pixel_intensity_values_to_housefield_CT_number) 

there's a load scan function that does conversion for you in this pastebin 

https://pastebin.com/MXkpnAmq (https://pastebin.com/MXkpnAmq) 

—

You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/mscipio/mscipio.github.io/issues/4#issuecomment-985180116), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASZIQ5PWAKCUQ74NYJNEIRDUPAYWBANCNFSM4KMF4OFQ). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).

Gresliebear commented 2 years ago

I think there's a lot of potential with medical images but comparing different machine learning models can be really costly and it requires a team of people to commit to creating some of these models.

I am trying get to back college for a PhD or Masters, I want to work on the same research.

I didn't want to shill myself but here's video explain the code if you need it https://www.youtube.com/watch?v=hWwAFNmPZFQ&t=915s&ab_channel=LeslieWubbel

also there's community I ran on discord and slack https://www.youtube.com/watch?v=hWwAFNmPZFQ&t=915s&ab_channel=LeslieWubbel

we closed down a lot of use are undergrads and busy with work so we keep things open source so people can keep carrying the torch so to speak.