Search found 14 matches

by Shune
Thu, 2016-03-31, 02:21
Forum: DCMTK - General
Topic: Decompress dicom images
Replies: 2
Views: 2896

Re: Decompress dicom images

I just heard that it is not free to use JPEG2000, so should I buy it?
by Shune
Tue, 2016-03-29, 11:34
Forum: DCMTK - General
Topic: Decompress dicom images
Replies: 2
Views: 2896

Decompress dicom images

Hi sir,
I am trying to decompress dicom images these days, and I cannot find errors in my code. I want to make sure that I used the wright way. The main file I used is djdecode.h and dcmjpeg.lib, all is downloaded from the office website, is it engouth?Thank you! :D
by Shune
Fri, 2016-03-11, 03:29
Forum: DCMTK - General
Topic: Decompress lossy compressed Dicom images
Replies: 3
Views: 3633

Re: Decompress lossy compressed Dicom images

Oh, I am really sorry for replying so late. Yep, I did learn form the website. :wink: ummm, the question has occured many times, when I tried to change the transfer syntax of dicom files, and I had to copy the pixel data to the new dicom files, but this time it did not work. :? shall I need do somet...
by Shune
Thu, 2016-02-25, 02:56
Forum: DCMTK - General
Topic: Decompress lossy compressed Dicom images
Replies: 3
Views: 3633

Decompress lossy compressed Dicom images

Sir, These days, I am trying to decompress lossy compressed Dicom images, and this is my codes: //my code start DJDecoderRegistration::registerCodecs();//register JPEG codecs DcmFileFormat m_fileformat; OFCondition status = m_fileformat.loadFile(m_OpenFilePath); if (status.good()) { /***************...
by Shune
Fri, 2015-12-11, 07:53
Forum: DCMTK - General
Topic: Does "getRootRecord()" lead to memory leak?
Replies: 6
Views: 6182

Re: Does "getRootRecord()" lead to memory leak?

J. Riesmeier wrote:If you want to store the reference, use the following:

Code: Select all

DcmDirectoryRecord &rootrec = dicomdir.getRootRecord();
Oh, yes, this is exactly what I want. Thank you very much, and sorry for replying so late. :)
by Shune
Thu, 2015-12-03, 07:51
Forum: DCMTK - General
Topic: Does "getRootRecord()" lead to memory leak?
Replies: 6
Views: 6182

Re: Does "getRootRecord()" lead to memory leak?

In my filrst example, I did not store the returned referance to the root record in a referance, right? Can destructor be used here? Maybe a pointer is a good way. :D Thanks for your answer...
by Shune
Wed, 2015-12-02, 07:35
Forum: DCMTK - General
Topic: Does "getRootRecord()" lead to memory leak?
Replies: 6
Views: 6182

Re: Does "getRootRecord()" lead to memory leak?

If I use the function in this way:
Prec = dicomdir.getRootRecord().getSub(P); //P is a number of patient, this code is to get NO.P patient record;

No memory leak! :)
Why? It is instersting! Hlep me, please
by Shune
Wed, 2015-12-02, 07:30
Forum: DCMTK - General
Topic: Does "getRootRecord()" lead to memory leak?
Replies: 6
Views: 6182

Does "getRootRecord()" lead to memory leak?

Hi All, I want to get information from dicomdir files, and then I used this function in this way: DcmDicomDir dicomdir(DirFilePath); //DirFilePath is that where DICOMDIR is; DcmDirectoryRecord rootrec, *Prec = NULL, *Srec = NULL, *SERrec = NULL, *Irec = NULL; rootrec = dicomdir.getRootRecord(); /* *...
by Shune
Mon, 2015-11-30, 07:26
Forum: DCMTK - General
Topic: Creat Dicomdir no patient sex
Replies: 2
Views: 3575

Re: Creat Dicomdir no patient sex

Hi, the General Purpose Application Profile you have choosen does not require Patient Sex to be present in the DICOMDIR. That is why the DicomDirInterface does not insert it. There is no way telling DicomDirInterface to insert optional attributes that you can choose on your own. You could select an...
by Shune
Thu, 2015-11-26, 09:38
Forum: DCMTK - General
Topic: Creat Dicomdir no patient sex
Replies: 2
Views: 3575

Creat Dicomdir no patient sex

I have created dicomdir files some days ago, but today I found that there is no such information: Patient Sex, here is my code: DicomDirInterface dicomdir; result = dicomdir.createNewDicomDir(DicomDirInterface::AP_GeneralPurpose, "D:\\22222\\DICOMDIR"); if (result.bad()) { MessageBox("...
by Shune
Mon, 2015-11-16, 07:18
Forum: DCMTK - General
Topic: About createWindowsDIB()
Replies: 4
Views: 5240

Re: About createWindowsDIB()

Did you already check what the output of the "dcm2pnm" command line tool is for these particular images? Maybe, they are monochrome and you did not specify an appropriate VOI transformation (window center/width or LUT). By the way, which version of the DCMTK do you use? You are right, I d...
by Shune
Mon, 2015-11-16, 07:00
Forum: DCMTK - General
Topic: About createWindowsDIB()
Replies: 4
Views: 5240

Re: About createWindowsDIB()

Did you already check what the output of the "dcm2pnm" command line tool is for these particular images? Maybe, they are monochrome and you did not specify an appropriate VOI transformation (window center/width or LUT). By the way, which version of the DCMTK do you use? :D The version tha...
by Shune
Fri, 2015-11-13, 08:18
Forum: DCMTK - General
Topic: About createWindowsDIB()
Replies: 4
Views: 5240

Re: About createWindowsDIB()

These days, I wanna show DICOM images through MFC, and then I used the function which is createWindowsDIB() to creat DIB, but the question is that I can only display some images, I mean that some are all black. I checked my codes, and I found that the function getData() return all zero data when th...
by Shune
Fri, 2015-11-13, 04:32
Forum: DCMTK - General
Topic: About createWindowsDIB()
Replies: 4
Views: 5240

About createWindowsDIB()

These days, I wanna show DICOM images through MFC, and then I used the function which is createWindowsDIB() to creat DIB, but the question is that I can only display some images, I mean that some are all black. I checked my codes, and I found that the function getData() return all zero data when the...