Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • 2
    Why not do it in two steps: dctopgm8 000005.dcm 000005.pbm and convert 000005.pbm 000005.png ? Commented Oct 30, 2019 at 9:43
  • @LjmDullaart Because I'd rather understand what parameters I'm missing so I can do the conversion in a single step.
    – Stéphane
    Commented Oct 30, 2019 at 9:45
  • 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?
    – Seth
    Commented Oct 30, 2019 at 9:53
  • @Seth I would like to convert the DICOM to PNG format with a single conversion command.
    – Stéphane
    Commented Oct 30, 2019 at 9:55
  • @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.
    – Stéphane
    Commented Oct 30, 2019 at 14:23