Search found 1733 matches

by Michael Onken
Sat, 2019-06-15, 10:06
Forum: DCMTK - General
Topic: support for fractional part of a second
Replies: 1
Views: 14

Re: support for fractional part of a second

Hi,

thank you for the pull request. We maintain the mirror on github, so we also get notified of new pull requests. We'll have a look at the patch, thanks!

Best regards,
Michael
by Michael Onken
Wed, 2019-06-05, 13:42
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

That sounds weird.

Did you try just using the first parameter in createDirectory and leave the second parameter empty ("")?
Of course the first parameter should be the value that you would also provide to System::IO::Directory::CreateDirectory().

Best regards,
Michael
by Michael Onken
Wed, 2019-06-05, 13:35
Forum: DCMTK - General
Topic: Fetching Patient Details
Replies: 4
Views: 40

Re: Fetching Patient Details

Hi Aditya, the reason is still the same I guess: You do not set any value in patientName, so it is empty all the time. Maybe you want to add the line dataset->findAndGetOFStringArray(DCM_PatientName, patientName) before the first if statement? Also, I don't know getchar() but maybe you want to use g...
by Michael Onken
Wed, 2019-06-05, 12:28
Forum: DCMTK - General
Topic: Fetching Patient Details
Replies: 4
Views: 40

Re: Fetching Patient Details

Hi,

the variable patientName is not set at all, is it?

To try the rest of your code, maybe just turn "if (patName == patientName)" into "if (true)" for a test run.

Best regards,
Michael
by Michael Onken
Tue, 2019-06-04, 15:20
Forum: DCMTK - General
Topic: DCMTK > find and store dicom files to local folder
Replies: 12
Views: 72

Re: DCMTK > find and store dicom files to local folder

Hi, -aet CALLING_AET111.111.111.111 4321 ^ -aec CALLED_AET 222.222.222.222 104 ^ Why do you provide two IP Adresses and ports? (also it seems that a space is missing before the 111...) You only need one ip and port. You can insert them at any position, i.e. before or after any of the options, e.g. t...
by Michael Onken
Thu, 2019-05-30, 13:52
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Exactly, please see DcmStorageSCP as the perfect and complete example:)
by Michael Onken
Wed, 2019-05-29, 11:32
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Hi, you can do the following within handleSTORERequest(): DcmFileFormat fileformat; *reqDataset = fileformat.getDataset(); OFCondition result = receiveSTORERequest(...., reqDataset) if (result.good()) { result = fileformat.save("/path/to/the/output_file.dcm"); if (result.bad() {...} } You can see mo...
by Michael Onken
Tue, 2019-05-28, 11:56
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Hi, you have to implement your own DcmSCP-derived class that you must use as template parameters when constructing the pool. Below is some sample code that I took from a project of mine; I modified the code to be unspecific, so I hope it still works. A class called StorageServer is constructed and i...
by Michael Onken
Tue, 2019-05-28, 10:16
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

So, do I understand you correctly, that this solves the "stop listen" problem?
by Michael Onken
Tue, 2019-05-28, 09:41
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Did you try using setConnectionBlockingMode(DUL_NOBLOCK) now?
by Michael Onken
Tue, 2019-05-28, 08:56
Forum: DCMTK - General
Topic: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory
Replies: 13
Views: 92

Re: DcmSCPPool, stopAfterCurrentAssociations and setOutputDirectory

Hi, Before calling listen(), get the configuration from the pool class getConfig() and call setConnectionBlockingMode(DUL_NOBLOCK) on the configuration. That ensures that you do not listen infinitely if no connection request is received. What happens if you call stopAfterCurrentAssociations() on the...
by Michael Onken
Tue, 2019-05-07, 07:17
Forum: DCMTK - General
Topic: How to generate DICOM JPEG compression image without JFIF header
Replies: 7
Views: 151

Re: How to generate DICOM JPEG compression image without JFIF header

I tried a file with empty Photometric Interpretation with DCMTK's dcmcjpeg tool (which does basically the same as calling changeRepresentation) and for me the JFIF information is present in the resulting file. My first impression from looking at the JPEG compressor code is that it always writes such...
by Michael Onken
Mon, 2019-05-06, 09:57
Forum: DCMTK - General
Topic: How to generate DICOM JPEG compression image without JFIF header
Replies: 7
Views: 151

Re: How to generate DICOM JPEG compression image without JFIF header

Hi Tony, I think you are right, the JFIF header is in the file. I actually though it's not inside, sorry for misdirecting you. I had a different behaviour in mind since the img2dcm tool removes the JFIF header when converting JPEG to DICOM. It is not possible to disable the existance of JFIF header ...
by Michael Onken
Mon, 2019-05-06, 09:12
Forum: DCMTK - General
Topic: How to get data from DICOM file receiver in C++
Replies: 5
Views: 79

Re: How to get data from DICOM file receiver in C++

Since you addressed me directly: I could not say it better :)

Best regards,
Michael
by Michael Onken
Wed, 2019-04-24, 10:11
Forum: DCMTK - General
Topic: How to generate DICOM JPEG compression image without JFIF header
Replies: 7
Views: 151

Re: How to generate DICOM JPEG compression image without JFIF header

Hi, maybe the file you are compression is already JPEG compressed so your API calls do not have any effect at all? Use the dcmdump tool and look at the Transfer Syntax denoted in the DICOM meta header to find out. To create a JPEG-compressed DICOM file just use the tool dcmcjpeg from DCMTK. It compr...