dcmmkdir corrupted dicomdir

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Ahmed_Zikry
Posts: 15
Joined: Fri, 2014-08-15, 08:12

dcmmkdir corrupted dicomdir

#1 Post by Ahmed_Zikry »

Hello all,

I have a folder which is called PAT_0000 this folder contain 2 images "IM_0001" & "IM_0002".

when i try command line--> dcmmkdir.exe PAT_0000\IM_0001 OR dcmmkdir.exe PAT_0000\IM_0002
it generates a dicomdir file that is fine and i'm able to open it using dicom viewer MicroDicom.

when i try command line--> dcmmkdir.exe +id PAT_0000 +r , to get one dicomdir for all the files in PAT_0000, it works fine but the generated dicomdir dosn't open on the viewer, i tried another viewer it also dosn't open and keeps giving me message that the dicomdir dosnt conform with dicom stander.

Sorry for bothering you.

Thanks in advance.

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: dcmmkdir corrupted dicomdir

#2 Post by J. Riesmeier »

Omit the option "+id" in the second example, but keep the directory "PAT_0000" on the command line. This will cause dcmmkdir to include the directory name in the DICOMDIR file.

The DICOMDIR file was not corrupted or not standard-compliant but the referenced DICOM image file could not be found by the File-set Reader (because of the wrong directory structure). Read the man page of this tool for details.

Ahmed_Zikry
Posts: 15
Joined: Fri, 2014-08-15, 08:12

Re: dcmmkdir corrupted dicomdir

#3 Post by Ahmed_Zikry »

Thanks now its working fine :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest