LEADTOOLS Support
Imaging
Imaging SDK Questions
Code for loading images into RasterImageList using CDLL
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 20, 2012 8:13:20 PM(UTC)
Groups: Registered
Posts: 71
Hello,
Can you please tell me how can I load images from DICOMDIR to RasterImageList or to RasterThumbnailBrowser using CDLL?
Thanks...
#2
Posted
:
Thursday, November 22, 2012 6:53:07 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
There are some specific steps to work with DicomDIR files. These files are standard Dicom datasets, but they contain special information about other datasets. Please try the following steps:
1. Load the DICOMDIR using L_DicomLoadDS.
2. Get the first element in the Dicom directory and it should be patient element. You can do that using L_DicomGetFirstKey().
2. Loop the elements if the returned Dicom Element of L_DicomGetFirstKey is not null.
3. Inside the loop check the values of the returned Dicom Element from L_DicomGetValueKey and see if the value is "IMAGE". You can find the list of values here:
http://www.leadtools.com/help/leadtools/v175/dicom/api/dllsteps/workkey.htm
4. If the value is "IMAGE", gets the child element using L_DicomGetChildElement.
5. Now, retrieve the first "Referenced File ID" element of the above chilled element. This element contains string values. The first value is the folder name where the Dicom files are placed. The second value is the name of referenced Dicom file that contains the image.
6. Now you can retrieve the above two values using "L_DicomGetStringValue".
7. Now you can load the image into the "RasterImageList" and repeat the above (4,5 and 6) steps to load the rest of the Images placed in the Dicomdir.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Thursday, January 10, 2013 9:18:50 PM(UTC)
Groups: Registered
Posts: 71
Hello,
Can you please provide me some sample application in CDLL which will do the same? Or if i have the Image name with full path how can I load these images to RasterImageList. I am not able to create the rasterimagelist control or loading thumbnails into it. I need some sample.
Thanks
#4
Posted
:
Sunday, January 13, 2013 1:35:09 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
I am afraid that we don't have a ready sample project for loading Dicom Dir in CDLL Imagelist.
However, you can start with creating the Imagelist control. For more information, please see the following online help topics:
http://www.leadtools.com/help/leadtools/v175/main/api/dllsteps/usingtheimagelistcontrol.htm
http://www.leadtools.com/help/leadtools/v175/main/api/dllref/l_createimagelistcontrol.htm
After this, follow the same steps in my previous reply.
If you face any problem, please send me full details about it.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Code for loading images into RasterImageList using CDLL
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.