Search found 1813 matches

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

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: 898

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: 1429

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: 935

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: 935

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: 1429

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: 2713

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: 2079

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: 2713

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: 1162

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: 1162

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: 934

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: 2217

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...
by Michael Onken
Fri, 2020-01-24, 15:34
Forum: DCMTK - General
Topic: png to dicom
Replies: 12
Views: 2217

Re: png to dicom

Please use the dataset/file format variant that I posted instead of yours,i.e. in principle DcmDataset *dataset = NULL; convert(...); DcmFileFormt fileformat(dataset); The convert() call returns a newly allocated dataset, and does not use the empty one (created by DcmFileFormat internally) that you ...
by Michael Onken
Fri, 2020-01-24, 14:32
Forum: DCMTK - General
Topic: png to dicom
Replies: 12
Views: 2217

Re: png to dicom

Hi, do you actually feed your "dataset" into the "fileformat"? Otherwise you will write a file without dataset. See how it's done in img2dcm. Applied to your code this would be something like: Image2Dcm i2d; I2DOutputPlug *outPlug = new I2DOutputPlugSC(); I2DImgSource *inputPlug = new I2DJpegSource(...