muschellij2 / dcmtk

Wrapper for 'DICOM' Toolkit ('DCMTK')
2 stars 1 forks source link

DICOM to jpeg or PDF #1

Closed captcoma closed 5 years ago

captcoma commented 5 years ago

Dear Mr. Muschelli

Thank you very much for sharing this package. Is there any possibility to convert DICOM to jpeg or PDF in R?

Thank you for your help

muschellij2 commented 5 years ago

Through dcmtk R package, not currently. The dcmj2pnm function from dcmtk can do it. In a new R session, or restart R, run

devtools::install_github("muschellij2/dcmtk") library(dcmtk) png::readPNG(png)

you can also use oro.dicom::readDICOM to read in DICOM data, then use png::writePNG to write it out. John

On Fri, Feb 8, 2019 at 11:31 AM captcoma notifications@github.com wrote:

Dear Mr. Muschelli

Thank you very much for sharing this package. Is there any possibility to convert DICOM to jpeg or PDF in R?

Thank you for your help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/muschellij2/dcmtk/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBnrk9cyRCXH2nuRu2M36pe9Twq8i6Qks5vLezGgaJpZM4axtrz .