Search found 4 matches

by Hualei.Shen
Wed, 2017-03-22, 07:42
Forum: DCMTK - General
Topic: Set window center / width for multi-frame DICOM image
Replies: 5
Views: 5304

Re: Set window center / width for multi-frame DICOM image

Now I get the right results. I paste the key pseudo-codes here. And I hope this will help others who encounter the same problem. ***************************************************************** //pRenderedData points to a buffer, which is used to store the rendered pixel data, frame by frame for (i...
by Hualei.Shen
Thu, 2017-03-02, 13:11
Forum: DCMTK - General
Topic: Set window center / width for multi-frame DICOM image
Replies: 5
Views: 5304

Re: Set window center / width for multi-frame DICOM image

Now there is some advance... I replace //(1) set window width / window center dicomImage.setWindow(dbWindowCenter, dbWindowWidth); with the following code: //(1) set window width / window center, frame by frame int valReturn = 0; for (int frame = 0; frame < GetImgDepth(); frame++) { valReturn = dico...
by Hualei.Shen
Thu, 2017-03-02, 00:32
Forum: DCMTK - General
Topic: Set window center / width for multi-frame DICOM image
Replies: 5
Views: 5304

Re: Set window center / width for multi-frame DICOM image

How do you access the individual frames? Do you have a code fragment that shows this behavior? Many thanks for your kind reply! I access the individual frame via step (3) in the following code: //(0.1) load DICOM header from file "strDICOMPath" DcmFileFormat dicomFileFormat; OFCondition s...
by Hualei.Shen
Wed, 2017-03-01, 14:13
Forum: DCMTK - General
Topic: Set window center / width for multi-frame DICOM image
Replies: 5
Views: 5304

Set window center / width for multi-frame DICOM image

Dear friends, I have a multi-frame DICOM image. I want to set window center and window width for all frames, then save each frame as single image file. My routine is: (1) Use "DicomImage::setWindow()" method to the DICOM image; (2) Use "DicomImage::getOutputData()" method to obta...