Search found 10 matches

by hoole
Wed, 2011-08-17, 15:36
Forum: DCMTK - General
Topic: Memory leakage of CreateWindowsDIB?
Replies: 4
Views: 5210

Hi,

Now we can position the bug at GDI+. The method is to use a synthetic image instead of GetWindowsDIB.

I'm sorry for my wrong suspicions. Thanks again to your great work.
by hoole
Wed, 2011-08-17, 11:07
Forum: DCMTK - General
Topic: Memory leakage of CreateWindowsDIB?
Replies: 4
Views: 5210

OK. My code is as follows. Notice m_image is for display using GDI+. uint8 * buff = NULL; unsigned long a = dcmImage->createWindowsDIB((void* &)buff, 0, 0, 8); m_image.SetBitmap(Gdiplus::Bitmap::FromBITMAPINFO(bmInfo, buff)); delete [] buff; Then we get error display which seems random bits. The...
by hoole
Wed, 2011-08-17, 07:54
Forum: DCMTK - General
Topic: Memory leakage of CreateWindowsDIB?
Replies: 4
Views: 5210

Memory leakage of CreateWindowsDIB?

Hi DCMTKers, Recently, I found something strange in the CreateWindowsDIB. Platform: Windows XP SP3 EN DEV: MSVC 2005 I logged the call stack for reference. ---------- Block 348430 at 0x0B1CB298: 36 bytes ---------- Call Stack: src\dcmimgle\libsrc\dimoimg4.cc (84): DiMonoImage::getDataSint16 src\dcmi...
by hoole
Wed, 2011-06-29, 04:03
Forum: DCMTK - General
Topic: Question about computing SUV of PET
Replies: 1
Views: 3230

Question about computing SUV of PET

Dear DCMTKers, I'd like to compute the SUV (Standardized Uptake Values) of PET images. The SUV calculation is according to the following formula. SUV = pixelValue * DCM_PatientWeight * 1000.0f / (radionuclideTotalDoseCorrected * DCM_DecayFactor); Where radionuclideTotalDoseCorrected = DCM_Radionucli...
by hoole
Thu, 2011-05-19, 04:12
Forum: DCMTK - General
Topic: Questions about rescale slope and rescale intercept with DCMTK
Replies: 2
Views: 7416

It seems DCMTK don't have float precisions for immediate formats No, because IMHO the described use case is not what the Pixel Data is/was meant for - I would even call this an "abuse" of the Pixel Data element. Nevertheless, you could modify the Rescale Slope/Intercept values (if needed)...
by hoole
Wed, 2011-05-18, 08:59
Forum: DCMTK - General
Topic: Questions about rescale slope and rescale intercept with DCMTK
Replies: 2
Views: 7416

Questions about rescale slope and rescale intercept with DCMTK

Dear DCMTKers, I encountered a Philips PET image which contained strange rescale slope and rescale intercept. 0028,1050, Window Center=25524.0 0028,1051, Window Width=31120 0028,1052, Rescale Intercept=0.0153112 0028,1053, Rescale Slope=0.000450329 As the calculation is Pixel Output value = Stored P...
by hoole
Sat, 2011-03-19, 10:47
Forum: DCMTK - General
Topic: Can dcmqrscp support compress/uncompress transfer by the same configure?
Replies: 3
Views: 5090

First of all, the different --propose-xxx and --prefer-xxx options are mutually exclusive, i.e. they cannot be used together (the rightmost option always "wins"). However, if you want to use a single compressed transfer syntax together with the uncompressed transfer syntaxes, this is poss...
by hoole
Wed, 2011-03-02, 15:59
Forum: DCMTK - General
Topic: Can dcmqrscp support compress/uncompress transfer by the same configure?
Replies: 3
Views: 5090

Can dcmqrscp support compress/uncompress transfer by the same configure?

Dear DCMTKers, I am using dcmqrscp tool of the latest version (3.6). When I execute the cmdline as follows, the uncompress transfer is perfect. dcmqrscp -v -c E:\dicom_archive\dicom\db\dcmqrscp.cfg 5678 When I execute the cmdline as follows, the transfer of jpeg images is perfect dcmqrscp -v -c E:\d...
by hoole
Tue, 2011-03-01, 15:37
Forum: DCMTK - General
Topic: questions about findSCU/moveSCU's different result
Replies: 1
Views: 3624

questions about findSCU/moveSCU's different result

Dear DCMTKers, I have a question about the latest release version (3.6.0). I configured the worklist in host machine. Then when I use findSCU to query the database. findscu -v -d -P HOSTIP HOSTPORT -aec COMMON -k 0008,0052="PATIENT" -k 0010,0010="*" the result shows as follows: I...
by hoole
Tue, 2010-11-30, 03:09
Forum: DCMTK - General
Topic: Problems of reading Philips DICOMDIR
Replies: 1
Views: 3133

Problems of reading Philips DICOMDIR

Hi, I encountered a problem when reading Philips DICOMDIR. The code was exactly as the following link. http://forum.dcmtk.org/viewtopic.php?t=46#205 However, root->nextSub() always return NULL. When step-in, I found DcmDicomDir() will check the DEFAULT_DICOMDIR_NAME which is DICOMDIR. But Philips's ...