dicom >> dcmtk : how to determine a dicom file

by jychin_sharol » Thu, 23 Sep 2004 15:07:00 GMT

hi all..
i;m a newbie here and i just started using dcmtk few days ago. i
looking for the code in the prog (storescp, storescu) on how it
determines whether it is a dicom file or not. what does it check?
i can't seem to be able to find it. Could someone please enlighten me?

thanks!!
yee

dicom >> dcmtk : how to determine a dicom file

by Joerg Riesmeier » Thu, 23 Sep 2004 16:43:37 GMT



Follow the function calls starting with DcmFileFormat::loadFile().
There are some heuristics: first we try to detect and load the
file meta information header, but if this fails we assume it is
a DICOM dataset (file without meta header) and we need to guess
the transfer syntax ...
However, this behaviour can be changed using the command line
switches +f/-f that are available for most command line tools
reading DICOM files/datasets.

Regards,
Joerg Riesmeier
OFFIS

dicom >> dcmtk : how to determine a dicom file

by jychin_sharol » Tue, 28 Sep 2004 17:29:06 GMT


Thanks for ur reply.
I can't seem to find the code DcmFileFormat::loadFile() in the
storescu source is it somewhere else?

dicom >> dcmtk : how to determine a dicom file

by Joerg Riesmeier » Mon, 04 Oct 2004 17:31:17 GMT


It's in line 1333 of the source code file "dcmnet/apps/storescu.cc"
(DCMTK 3.5.3).

Regards,
Joerg Riesmeier
OFFIS

dicom >> dcmtk : how to determine a dicom file

by jychin_sharol » Tue, 05 Oct 2004 07:26:09 GMT

Thank you very much for your help. I have found the code
DcmFileFormat::loadFile() in the storescu source. Thank you once
again!!

Regards,
Jia Yee

dicom >> dcmtk : how to determine a dicom file

by jychin_sharol » Tue, 05 Oct 2004 07:30:33 GMT

Thank you very much for your help. I have found the code
DcmFileFormat::loadFile() in the storescu source.

Regards,
Jia Yee

Similar Threads

1. New release of DICOM Detective available (a DICOM capture file and DICOM file viewer)

2. ANNOUNCEMENT: OFFIS DICOM Toolkit DCMTK 3.5.3 now available for download

3. can we connect multiple instances of DCMTK Dicom server

4. dcmtk - using dcmconv to clean-up a DICOM image

Hi,

I am producing a DICOM image from a JPEG using gimp v2.0.5.  This
works pretty well, but the DICOM image so-produced needs some cleaning-
up.  At one time I got dcmconv to take care of most of the problems,
the most egregious of which was the absence of values for attributes
such as number of rows and columns, high bit, etc.  I'm embarrassed to
say that I can no longer produce this result; that is, I've forgotten
exactly which command line options I used.  Instead, I'm taking the
extra step of using dcmodify to set the correct values which is fine
but probably not the best way.  Can someone give me some guidance?
I'm using dcmtk v3.5.4.

On the other hand, it seems that I should be able to produce a valid
DICOM image from a JPEG in a more direct fashion using the dcmtk
utilities.  What am I missing?

Thanks,
Peyton Bland

5. DCMTK: JPEG >-> DICOM

6. How to display dicom image by dcmtk?

I am using dcmtk to deal with dicom image, I want to modify window center
and width and display it by dib, so firstly I set the current proper window
center and width by DicomImage::setWindow then create a DIB by
DicomImage::createWindowsDIB and show it, by now, it work corrently. When I
modified the window center and width at run-time, then create a new DIB by
DicomImage::createWindowsDIB and show it, but appearance of image is same.
Why? How should I do?

Thanks a lot and regards
Lokicer


7. Location of dicom.dic (was: DCMTK JPEGLIB8 Error)

8. Modify pixel data of Dicom image with Dcmtk

Hi everyone.

How can i modify pixel data of Dicom image?

I want to:
1. load a dicom image.
2. change the image (for instance: set red pixel in the center of
image)
3. save the modified image.

my problems are over point 2.

I use findAndGetUint8Array(DCM_PixelData, ...) and
putAndInsertUint8Array(DCM_PixelData, ...) method of DcmDataset. But
the problem is if the image is compressed or 8bit or 16 bit, ...

Can anyone help me?