icon image sequence thumbnails?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
bsapach
Posts: 7
Joined: Mon, 2006-02-06, 18:34

icon image sequence thumbnails?

#1 Post by bsapach »

Hello everyone,

I'm looking for a way to display thumbnail icons of images in my application. I'm assuming I can do this by pulling out DCM_IconImageSequence from a file instance DcmDirectoryRecord. I haven't been able to get it working yet, should I treat it as a DicomImage??? If anyone has an example I'd greatly appreciate it. Here's my code so far:

Code: Select all


file->findAndGetOFStringArray(DCM_ReferencedFileID,val);
path.Format("%s\\%s",DICOMDIRPath,val.data());
FileFormat->loadFile(path.GetBuffer());
DcmDataset * DDataSet = FileFormat->getDataset();
DcmSequenceOfItems * icon;
file->findAndGetSequence(DCM_IconImageSequence,icon);
DicomImage * DImage = new DicomImage(icon,DDataSet->getOriginalXfer(),0,0,0,0,1);

DICOMDIRPath is the path to the folder containing the DICOMDIR file.

thanks!

Beau

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

The short answer is: Use findAndGetSequenceItem() instead of findAndGetSequence() since the constructor of class DicomImage() expects an DcmItem or a DcmDataset/DcmFileFormat object.

Post Reply

Who is online

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