Search found 1815 matches

by Michael Onken
Fri, 2020-06-12, 15:45
Forum: DCMTK - General
Topic: Store SCP error: DIMSE Failed to receive message
Replies: 3
Views: 977

Re: Store SCP error: DIMSE Failed to receive message

Hi, I agree that this looks like a VPN issue where the network connection breaks down in the middle of the communication. If there is a virus scanner running in the background, I would try to disable it for testing. We had cases where this was also a cause of weird connection problems. Best regards,...
by Michael Onken
Mon, 2020-05-25, 14:52
Forum: DCMTK - General
Topic: DCMODIFY and DCMDUMP private tags
Replies: 4
Views: 1630

Re: DCMODIFY and DCMDUMP private tags

Hi,
I will ask the author of dcmodify to comment on this.
That would be me...

There is a bug with the reservation checking for private tags. I have fixed this in commit f7bd99. Do you have the chance to compile from source and try the new version?

Best regards,
Michael
by Michael Onken
Mon, 2020-04-27, 10:22
Forum: DCMTK - General
Topic: Insert meta header to dataset
Replies: 4
Views: 978

Re: Insert meta header to dataset

Hi, yes, understood. But the tag 0002,0016 (i.e. group number 0002) is not permitted in a dataset according to the DICOM standard. Otherwise just copy the value to any other tag: OFString val; metainfo->findAndGetOFStringValue(DCM_SourceApplicationEntityTitle​, val); dataset->putAndInsertOFStringArr...
by Michael Onken
Fri, 2020-04-24, 16:13
Forum: DCMTK - General
Topic: Insert meta header to dataset
Replies: 4
Views: 978

Re: Insert meta header to dataset

Hi,

do something like this (add error checks where necessary):

Code: Select all

DcmFileFormat dcmff;
dcmff.loadFile("file.dcm");
// Most relevant part:
dcmff.getMetaInfo()->putAndInsertOFStringArray(DCM_SourceApplicationEntityTitle, "DESIREDAETITLE");
dcmff.saveFile();
Best regards,
Michael
by Michael Onken
Fri, 2020-02-21, 14:10
Forum: Other DICOM Tools
Topic: dcmodify and private sequence attributes
Replies: 4
Views: 1540

Re: dcmodify and private sequence attributes

Sorry, I did not have the time to look into this in depth, I will check within the next days.

Best,
Michael
by Michael Onken
Fri, 2020-02-21, 14:08
Forum: DCMTK - General
Topic: Do we have any validation Report for DCMTK Lib?
Replies: 3
Views: 1010

Re: Do we have any validation Report for DCMTK Lib?

Hi,

some vendors definitely have such an approval with DCMTK as part of their system but I dont know how they did it and we (DCMTK team) do not have any validation reports.

Best,
Michael
by Michael Onken
Wed, 2020-02-19, 12:05
Forum: DCMTK - General
Topic: Do we have any validation Report for DCMTK Lib?
Replies: 3
Views: 1010

Re: Do we have any validation Report for DCMTK Lib?

Hi, I am not aware of any validation report of any type. Also I am not sure what kind of validation you are referring to, e.g. DCMTK as a software under the medical device directive or with FDA label? We know various companies that use DCMTK in their medical products but I don't know how they did th...
by Michael Onken
Wed, 2020-02-12, 09:29
Forum: Other DICOM Tools
Topic: dcmodify and private sequence attributes
Replies: 4
Views: 1540

Re: dcmodify and private sequence attributes

Hi, under some cirumstances it is into possible for a DICOM parser to recognize and parse unknown private sequence data. Is the file encoded in Little Endian Implicit? It could also be a problem with the lookup method dcmodify uses to recognize the tag on the commandline, so I am not 100% sure that ...
by Michael Onken
Tue, 2020-02-04, 11:40
Forum: DCMTK - General
Topic: Getting file id from DICOMDIR
Replies: 3
Views: 2789

Re: Getting file id from DICOMDIR

Hi, you could use DcmItem's findAndGetElements() to retrieve all occurrences of a tag. I think you must load it as a regular DICOM file/dataset (not via DcmDicomDir), i.e. DcmFileformat dcmff; dcmff.loadFile("DICOMDIR"); dcmff.getDataset()->findAndGetElements(....) ... Best regards, Michael
by Michael Onken
Tue, 2020-02-04, 09:23
Forum: DCMTK - General
Topic: Storescu/ dcmqrscp Transfer Syntax option
Replies: 8
Views: 2268

Re: Storescu/ dcmqrscp Transfer Syntax option

Hi, JPEG Baseline options are -xy for storescu, and +xy for dcmqrscp, I think. Best regards, Michael PS instead of storescu you could also use dcmsend which is smarter than storescu. It can also decompress if desired, eg if the server does not accept compression. To decompress also lossy images with...
by Michael Onken
Tue, 2020-02-04, 09:19
Forum: DCMTK - General
Topic: Getting file id from DICOMDIR
Replies: 3
Views: 2789

Re: Getting file id from DICOMDIR

dcmdump +P ReferencedFileID DICOMDIR
by Michael Onken
Fri, 2020-01-31, 18:24
Forum: DCMTK - General
Topic: dcmqrscp and --assoc-config-file
Replies: 6
Views: 1253

Re: dcmqrscp and --assoc-config-file

Hi,

thanks for the update and the link to the great website! I agree that it would be helpful to allow unknown Storage SOP Classes in the future.

Maybe option -pm (like in storescp) would make sense in dcmqrscp, too?

Best regards,
Michael
by Michael Onken
Thu, 2020-01-30, 22:07
Forum: DCMTK - General
Topic: dcmqrscp and --assoc-config-file
Replies: 6
Views: 1253

Re: dcmqrscp and --assoc-config-file

Hi,

I am not sure about dcmqrscp and private SOP classes but maybe there is also a problem with the client that sends a (somewhat) broken request? Can you show the log of the request and the resulting error (e.g. via -d in the DCMTK-related tools).

Best regards,
Michael
by Michael Onken
Thu, 2020-01-30, 09:39
Forum: DCMTK - General
Topic: No pixel data found in DICOM dataset
Replies: 1
Views: 1000

Re: No pixel data found in DICOM dataset

Hi, ahm, you could insert pixel data into the file? :idea: No, seriously, it seems there is no Pixel Data element in your DICOM file which is required in DICOM for a valid image. You can use dcmdump to have a look into the file and check whether the tag Pixel Data is existing (usually at the very en...
by Michael Onken
Fri, 2020-01-24, 16:00
Forum: DCMTK - General
Topic: png to dicom
Replies: 12
Views: 2431

Re: png to dicom

Great :) I consider the allocation in convert() a feature :) Since the parameter is a reference to a pointer, this is usually a sufficient note to the user that the method returns a new pointer for newly allocated memory. There is no reason to make it a reference if one does not return a new pointer...