Search found 1758 matches

by Michael Onken
Fri, 2019-12-13, 11:26
Forum: DCMTK - General
Topic: How can we add a new tag into DICOMDIR
Replies: 1
Views: 15

Re: How can we add a new tag into DICOMDIR

Hi, what do the "item.putAndInsertString()" methods return? e.g. do .... OFCondition result; result = item.putAndInsertString(PRV_PrivateElement1, "Some Text"); if (result.bad()) { std::cerr << result.text() << OFendl; } ... You could also try to print the item right after insertion for debugging pu...
by Michael Onken
Fri, 2019-12-13, 11:17
Forum: DCMTK - General
Topic: Does DCMTK having support of STOW-RS
Replies: 1
Views: 7

Re: Does DCMTK having support of STOW-RS

Dear Akshaybar Singh,

there is no STOW-RS support in DCMTK right now.

Best regards,
Michael
by Michael Onken
Fri, 2019-12-13, 11:16
Forum: DCMTK - General
Topic: storescp: execution of command fails
Replies: 4
Views: 110

Re: storescp: execution of command fails

Hi OliWe,

unfortunately I have not really an idea.

Are you maybe accessing a network share in your -xcs executed command that may "hang" every now and then?

Best regards,
Michael
by Michael Onken
Tue, 2019-11-19, 11:34
Forum: DCMTK - General
Topic: dcmodify questions.
Replies: 4
Views: 676

Re: dcmodify questions.

Hi,

as promised, I added a few words about UID and (non-)directory processing to the dcmodify documentation. Thanks again.

Best regards,
Michael
by Michael Onken
Mon, 2019-10-28, 09:21
Forum: DCMTK - General
Topic: Dicom files into video
Replies: 7
Views: 419

Re: Dicom files into video

Hi, no there is no way to do this with a tool from the public DCMTK. There is a commercial tool that is sold by OFFIS and/or ICSMED that is able to convert DICOM multi-frame images to video. It is called dcm2avi . An evaluation version can be requested here . I am not sure whether it works on latest...
by Michael Onken
Thu, 2019-10-24, 08:42
Forum: DCMTK - General
Topic: dcmodify -if
Replies: 3
Views: 248

Re: dcmodify -if

Hi, the -if option reads the value from a file, BUT it assumes that the whole file is the new value, i.e the file does not necessarily have to be a DICOM file (or almost never is I guess). So you could create a text file with the desired value of Accession Number inside and use that for -if. This is...
by Michael Onken
Wed, 2019-10-23, 12:55
Forum: DCMTK - General
Topic: Newbie questions on DcmFileFormat and DcmInputStream
Replies: 2
Views: 206

Re: Newbie questions on DcmFileFormat and DcmInputStream

Hi Daniel, 1. Is there a way to read a file really lazy? It seems DcmFileFormat::read and DcmFileFormat::loadFile reads more than just the header. DCMTK automatically does lazy loading in terms of not loading all data (element values) into memory. The decision whether to load an element's value into...
by Michael Onken
Mon, 2019-10-14, 20:05
Forum: DCMTK - General
Topic: Which library contains a function to dump information of a file? in c, something similar to dcmdump
Replies: 5
Views: 263

Re: Which library contains a function to dump information of a file? in c, something similar to dcmdump

Hi, I don't now std::filebuf, but can't you just do: OFFilename f = ":\\Users\\User\\Documents\\test.txt"; // or simply: OFString f = ... OFCondition cond; cond = dataset.loadFile(f); if (cond.bad()) std::cerr << "Cannot load file " << f << ": " << cond.text() << std::endl; Also your dataset looks k...
by Michael Onken
Fri, 2019-10-11, 22:34
Forum: DCMTK - General
Topic: Which library contains a function to dump information of a file? in c, something similar to dcmdump
Replies: 5
Views: 263

Re: Which library contains a function to dump information of a file? in c, something similar to dcmdump

Hi, there is no C but a C++ method that does the printing. It is called... print () :-) That's the method that is called by dcmdump (a good place to look for it, right? :idea: ). You can call print() on a DICOM file (DcmFileFormat) or any other class of the DCMTK dcmdata class hierarchy that is used...
by Michael Onken
Mon, 2019-09-30, 08:48
Forum: DCMTK - General
Topic: dcmodify questions.
Replies: 4
Views: 676

Re: dcmodify questions.

Hi, until now I was quite optimistic that the current documentation of dcmodify is clear on that it works on single files. The word directory, recursive, or something that points into that direction is not found at all and all other DCMTK tools directly state if they support directories as an argume...
by Michael Onken
Fri, 2019-09-27, 11:24
Forum: DCMTK - General
Topic: dcmodify questions.
Replies: 4
Views: 676

Re: dcmodify questions.

Hi, dcmodify does not work recursively. You cannot provide directory names as an argument. dcmodify handles every file separately, i.e. it does not care about existing DICOM hierarchies and if you tell it to create a new Series Instance UID (for example), it will do the job separately for each file ...
by Michael Onken
Fri, 2019-09-27, 10:19
Forum: DCMTK - General
Topic: StoreSCU cann't send dicom file with JPEG lossless compressi
Replies: 4
Views: 3030

Re: StoreSCU cann't send dicom file with JPEG lossless compressi

Hi,

As a general solution use dcmsend instead of storescu.

Best regards,
Michael
by Michael Onken
Thu, 2019-09-26, 16:31
Forum: DCMTK - General
Topic: Accurate resizing of ultrasounds using DICOM data
Replies: 1
Views: 218

Re: Accurate resizing of ultrasounds using DICOM data

Hi, Not really a DCMTK question, but.... Ultrasound pixels must not be quadratic but can be rectangular. I guess you already know that after looking at your images ;) This information is stored in DICOM attributes, too. Specifically look for Pixel Aspect Ratio and Pixel Spacing. They are part of the...
by Michael Onken
Wed, 2019-09-25, 08:02
Forum: DCMTK - General
Topic: Problem re-inserting 32 bit image to a DICOM file
Replies: 2
Views: 258

Re: Problem re-inserting 32 bit image to a DICOM file

Hi Andrew, the DcmItem API that you are using offers calls for nearly all data types like Uint8, Uint32, OFString and so on. However, if the data type (VR) and the respective DCMTK class of the addressed attribute (e.g. Pixel Data) does not offer this call, the method will fail. For Pixel Data, you ...
by Michael Onken
Wed, 2019-09-11, 11:33
Forum: DCMTK - General
Topic: Windows bitmap (HBITMAP) to DICOM Image.
Replies: 1
Views: 289

Re: Windows bitmap (HBITMAP) to DICOM Image.

Hi,

no, right now there is no such class or method.

You could try to extend the existing img2dcm classes, e.g. add a related method to I2DBmpSource used by img2dcm to read from memory instead of a BMP file.

Best regards,
Michael