Can you view those .dcm files downloaded from osirix?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jiapei100
Posts: 2
Joined: Mon, 2014-06-02, 16:01
Location: ShenZhen, China
Contact:

Can you view those .dcm files downloaded from osirix?

#1 Post by jiapei100 »

Hi, all:

I'm trying to display how DICOM images look like.

1) I downloaded some sample images from
http://www.osirix-viewer.com/datasets/
after extraction, in each subfolder, there are a bunch of .dcm files, but I can't see the contents of the thumbnails.

2) I installed some free DICOM image viewers directly from Ubuntu 14.04's repository.

However, none of those .dcm files can be opened and viewed.


Can anybody give me a hand please?


Cheers
Pei
Welcome to Longer Vision
https://www.longervision.com/

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Can you view those .dcm files downloaded from osirix?

#2 Post by Marco Eichelberg »

DCMTK does not contain any ready-to-use DICOM viewer, but a command line tool that can convert most valid DICOM images to JPEG (as long as the DICOM dataset is uncompressed), and tools to uncompress several types of compression. Perhaps you start with

Code: Select all

dcmj2pnm --verbose --write-jpeg filename.dcm filename.jpg
If the image is grayscale with more than 8 bits/pixel, the following option often works well:

Code: Select all

dcmj2pnm --verbose --write-jpeg --min-max-window filename.dcm filename.jpg
If you receive errors about the DICOM image being in the wrong transfer syntax (i.e. being compressed),
you can try one of the decompressor tools such as dcmdrle (for RLE), dcmdjpeg (for JPEG), dcmdjpls (for JPEG-LS) or dcmconv (for Deflate),
and then try dcmj2pnm.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest