Search found 1750 matches

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: 1
Views: 5

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: 3
Views: 51

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: 3
Views: 51

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

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

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

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

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
by Michael Onken
Thu, 2019-09-05, 09:06
Forum: DCMTK - General
Topic: findscu and radiopharmaceutical tag (0018,0031)
Replies: 3
Views: 62

Re: findscu and radiopharmaceutical tag (0018,0031)

Hi, the tag you mention belongs to the PET image level, i.e. you have to query down with findscu to the IMAGE level. Also, it is inside the Radiopharmaceutical Information​ Sequence (0054,0016). I would try to query that Sequence with empty value with findscu (findscu -k IMAGE -k "(0054,0016)" -k SO...
by Michael Onken
Wed, 2019-08-21, 12:32
Forum: Third-Party DCMTK Applications
Topic: DCMSeg - error on createBinarySegmentation
Replies: 1
Views: 354

Re: DCMSeg - error on createBinarySegmentation

Hi,

you have to fill in all values on the equipment struct, right now Manufacturer's Model Name is empty.

I will add a related hint in the API documentation of the create... methods.

Best regards,
Michael
by Michael Onken
Tue, 2019-08-13, 08:49
Forum: DCMTK - Installation
Topic: Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0
Replies: 2
Views: 84

Re: Build dcmtk-3.6.4 failed on Debian 10 with gcc-8.3.0

Hi,

thank you for the report; the includes have been fixed meanwhile in commit 2d2f2 in December 2018.

Best regards,
Michael
by Michael Onken
Thu, 2019-08-08, 22:30
Forum: DCMTK - General
Topic: C-MOVE Query Failure with David Harvey's Testserver
Replies: 1
Views: 84

Re: C-MOVE Query Failure with David Harvey's Testserver

Hi, here it's probably the same (potential) issue as in your other thread: Your storage server is listening on the wrong port (in case of Dave Harvey's site your listen port must be the same port that you connect to on Dave's server, see documentation on his website) or is behind a firewall, or both...
by Michael Onken
Thu, 2019-08-08, 22:26
Forum: DCMTK - General
Topic: C-MOVE Response (Refused: OutOfResourcesSubOperations)
Replies: 1
Views: 73

Re: C-MOVE Response (Refused: OutOfResourcesSubOperations)

Hi, An error during MOVE that refers to sub operations always refers to a problem on the second connection, i.e. the connection the PACS is starting to the storage server in order to send the images. Probably the storage server is behind a firewall, not configured correctly in the PACS (e.g. wrong p...
by Michael Onken
Tue, 2019-07-16, 13:55
Forum: DCMTK - General
Topic: Create quality jpeg image
Replies: 3
Views: 120

Re: Create quality jpeg image

Hi, what do you mean by quality loss? Note that some DICOM images have more grayscale values than JPEG can actually store i.e. there is inherent loss when converting to JPEG in such cases. In many cases, however, dcmj2pnm can help selecting those grayscales that are most interesting and/or meaningfu...
by Michael Onken
Tue, 2019-07-09, 15:01
Forum: DCMTK - General
Topic: Check if no associations are being used.
Replies: 7
Views: 227

Re: Check if no associations are being used.

Hi,

you have your own code in place that receives the image(s) right? Why not counting them using a class member variable?

Best regards,
Michael
by Michael Onken
Tue, 2019-07-09, 09:20
Forum: DCMTK - General
Topic: Check if no associations are being used.
Replies: 7
Views: 227

Re: Check if no associations are being used.

Ah thanks Jörg, sure. I implemented something similar for a customer based on DcmSCP that's why I was mistaken.

Best,
Michael