Skip to main content

Timeline for How to convert DICOM images to PNG?

Current License: CC BY-SA 4.0

18 events
when toggle format what by license comment
Feb 1 at 21:00 answer added bviktor timeline score: 0
May 24, 2022 at 18:06 answer added Wouter timeline score: -1
Oct 30, 2020 at 9:52 comment added J. Riesmeier Regarding dcm2pnm (or dcmj2pnm if you need support for JPEG-compressed DICOM images) I would suggest to use option --min-max-window (short: +Wm) in addition to --write-png (short: +on). This makes sure that an automatically computed VOI window (based on the minimum and maximum pixel value in the image) is applied for rendering the output bitmap.
Dec 20, 2019 at 12:00 history tweeted twitter.com/super_user/status/1207994200429617152
Dec 6, 2019 at 16:56 answer added Dave Chen timeline score: 3
Oct 31, 2019 at 9:25 comment added Seth Because you haven't. There is a j in that command that isn't in the other. While it's is possible that it will have the same result at least give it a shot. You could also experiment with the input commands for either command and the LUT options. Using verbose and image info might shed some more light on your input and what's going wrong during conversion.
Oct 31, 2019 at 8:37 comment added Stéphane @Seth I don't know how you can say that. I even included the images that resulted from running those commands.
Oct 30, 2019 at 15:10 comment added Stéphane @Moab, no, that one is part of the usual dcmtk package on Ubuntu, but it doesn't convert the image correctly. See the images I posted in my question. So far, the only one that seems to work correctly is the .pbm converter.
Oct 30, 2019 at 15:00 comment added Moab It may not be able to be done in Linux, I see several windows utilities that claim to do it, but this one has to be complied>>>>>>support.dcmtk.org/docs/dcmj2pnm.html
Oct 30, 2019 at 14:23 comment added Stéphane @Moab No, as you can see above, that technique does not work. The images are not converted correctly. The only one that seems to work correctly is the .pbm, but what I need is .png or .jpg.
Oct 30, 2019 at 10:13 answer added Rok timeline score: -1
Oct 30, 2019 at 10:02 history edited Stéphane CC BY-SA 4.0
explain why the images look wrong
Oct 30, 2019 at 9:55 comment added Stéphane @Seth I would like to convert the DICOM to PNG format with a single conversion command.
Oct 30, 2019 at 9:53 history edited Stéphane CC BY-SA 4.0
added 113 characters in body
Oct 30, 2019 at 9:53 comment added Seth I don't really get what the problem is. Your last command is a single conversion command. The other commands, if still necessary, highlight what needs to be done. For a single command dcmj2pnm seems to provide what you're asking for?
Oct 30, 2019 at 9:45 comment added Stéphane @LjmDullaart Because I'd rather understand what parameters I'm missing so I can do the conversion in a single step.
Oct 30, 2019 at 9:43 comment added Ljm Dullaart Why not do it in two steps: dctopgm8 000005.dcm 000005.pbm and convert 000005.pbm 000005.png ?
Oct 30, 2019 at 9:37 history asked Stéphane CC BY-SA 4.0