Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: DicomDir
Started by vidula_joshi at 10-21-2008 1:23. Topic has 12 replies.

Print Search « Previous Thread Next Thread »
  10-21-2008, 1:23
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
DicomDir
Reply Quote

Hi

I want to create dicom directory for the structure which I am going to write on CD without creating same directory structure on local drive is it possible???

eg. structure on the local drive is like all file under patientid folder  C:\PatientID\*.dic 

and On CD

patientid folder it's study folder as CDDrive:\PatientID\Study1\*.dic

i.e. the structure on CD is different than the local path from which i am getting the files.

I do not want to create the same structure on local drive because it is time consuming.

Regards

Vidula

 


   Report 
  10-21-2008, 10:19
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: DicomDir
Reply Quote
Vidula,
In the DICOMDIR data set, the file names are stored without path information. This means you can create the DICOMDIR in any folder you want, then move the files to a different file structure without having to re-generate the DICOMDIR again. Does this answer your question?
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  10-22-2008, 8:22
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir
Reply Quote

I will explain you from start again.

My source folder is like C:\PatientID\*.dic.

and I am creating DICOM DIR on the path  C:\PatientID as C:\PatientID\DICOMDIR as,

Dicomdirds.Inserticonimagesequence=false

for each file in sourcefolder

Dicomdirds.InsertDicomfile  C:\PatientID\filename.dic

After that I write the images on CD as,

CDDrive:\Images\Study1\Series1\*.dic

CDDrive:\Images\Study1\Series2\*.dic

and Write DICOMDIR file on the path

CDDrive:\Images\Study1\DICOMDIR

My problem is after opening the dicom directory from CD path it will not show the images.

Whether it will do?

Is it requires the same folder structure?

 

 


   Report 
  10-24-2008, 9:51
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DicomDir
Reply Quote
You will need to update the Referenced File ID element (0004:1500) for each IMAGE that you change the directory structure.  This element is relative to where the DICOMDIR file is located.  The DICOMDIR file is a dataset just like any other dicom dataset file, so you can open it and modify it and then save it back out when you've made the necessary changes to the Referenced File ID tags.


Greg Ross
LEADTOOLS Technical Support
   Report 
  10-31-2008, 6:18
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir
Reply Quote

How to update the Referenced File ID.

What is the naming convention of   Referenced File ID. It is created like "some char ~some char.dic" e.g. "1271D3~1.dic". so while modifying this tag how I come to know the new file id.

Is this depend on the no. of files in folder to be considered while creating the DIR?

 


   Report 
  11-03-2008, 9:16
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DicomDir
Reply Quote
You modify the Referenced File ID tag just like any other element in a dataset.  If you need specific details regarding which functions to use, please tell me the LEADTOOLS version and interface (COM, CDLL, etc.) that you are using and I'll try to point you in the right direction.

For a definition of the Referenced File ID tag and how it is supposed to be used, please refer to the Dicom specifications part 3, section F.3.2.2.

The number of files in the folder has nothing to do with the Referenced File ID.  Referenced File ID is just a tag that tells you where you can find the Dicom File that the specific IMAGE key is referring to.

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-04-2008, 5:55
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir
Reply Quote

I am sending the sample to create DICOMDIR with instruction to use and see the result.
I am using VB 6.0 and Leadtools14.0
Please see the attached file.
Thanks in advance.


   Report 
  11-04-2008, 6:02
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir

Attachment: DicomDir Sample.zip
Reply Quote

Attachment

 


   Report 
  11-04-2008, 10:38
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DicomDir
Reply Quote
As far as I can tell, you are doing everything correctly.  However, you were a little vague in describing what the problem actually was.  Could you be more specific regarding your comment that "But this moved dicomdir doesn't work"

Also, what is the file version of LTR14n.dll that you are using?

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-07-2008, 6:51
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir
Reply Quote

If you load the moved dicomdir it doesn't point to image(some images are got missing).

i.e. the Referenced file id tag doesn't point to image so we can't able to load  it using dicomds

 

 


   Report 
  11-07-2008, 16:40
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DicomDir
Reply Quote
Which image(s) aren't loading?

What is the file version of ltr14n.dll that you are using?

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-07-2008, 17:02
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: DicomDir
Reply Quote
Nevermind, I was able to discern what you meant.  Unfortunately this is not a LEADTOOLS problem but a Windows "problem".  The issue is that according to the Dicom specifications, each file and directory name in a DICOMDIR can only be 8 characters long (See the Dicom specifications part 3 section F.3.2.2 for more details).  Therefore, since your files have long file names, we have to change the name internally to the DICOMDIR dataset to the DOS format (******~*).  This is not a problem normally, but when you move some of those files to another directory, the Windows DOS format name can actually change for the file name. 

I confirmed this was the problem by renameing all of your files to 01, 02, 03...14 and then running your sample project.  The modified DICOMDIR worked perfectly.

There is only two ways you will be able to fix this problem and still adhere to the DICOM standard:

1. Change the file names and subdirectories to adhere to the DICOM standard prior to creating the DICOMDIR.

2. Use the Windows name resolution to recalculate what the DOS format of the file name is after you have moved it.

I recommend the first method for the purpose of being more in tune with DICOM and it will likely be easier.  However, if you decide to go the second route, you will need to contact Microsoft for help with how to get the correct DOS formatted name.

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-08-2008, 0:18
vidula_joshi is not online. Last active: 11/20/2008 9:02:44 AM vidula_joshi

Top 200 Posts
Joined on 11-20-2007
Posts 16
Re: DicomDir
Reply Quote

Ok Thanks

I got that porblem of short file name.

Regards

Vidula


   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » Re: DicomDir

Powered by Community Server, by Telligent Systems