Search found 2217 matches

by Jörg Riesmeier
Fri, 2011-04-15, 10:03
Forum: DCMTK - General
Topic: ANSI Color DICOM Dump :)
Replies: 3
Views: 4042

Thank you for the proposal. I also love the colored output of dcmdump and, therefore, I also added this nice feature to dsrdump :-) The colored output of dcmdump was introduced quite late in the release cycle of DCMTK 3.6.0, so we decided to omit porting this feature to Windows (where ANSI escape co...
by Jörg Riesmeier
Fri, 2011-04-15, 08:00
Forum: DCMTK - Installation
Topic: Bad Style?
Replies: 1
Views: 3175

I agree that this is "bad style" but this has been introduced to dcmgpdir and dcm2pnm mainly for historical reasons: dcmmkdir and dcmj2pnm, which were introduced later, require JPEG support and, therefore, need to be linked to the libraries from dcmjpeg. Beside quality issues this jeopardizes poor w...
by Jörg Riesmeier
Thu, 2011-04-14, 20:17
Forum: DCMTK - General
Topic: modifying pixel data
Replies: 6
Views: 11898

If the pixel data values are modified by some other means, you could also use dcmodify to perform the modifications on the DICOM data elements.
by Jörg Riesmeier
Thu, 2011-04-14, 11:14
Forum: DCMTK - Installation
Topic: /MT vs /MD and x86 vs x64
Replies: 2
Views: 4721

Thank you for pointing this out. By default, DCMTK still uses /MT unless the CMake variable DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS is set to "off". However, for the official 3.6.0 release, the generator check for VS on Win x64 was incorrect -- the "Win64" suffix was missing. This has been fixed with t...
by Jörg Riesmeier
Tue, 2011-04-12, 17:29
Forum: DCMTK - General
Topic: convert 16 bit to 8 bit DICOM file
Replies: 1
Views: 2731

That's the reason why you have to specify the output bit depth when calling DicomImage::getOutputData(), e.g. in your case 8.
by Jörg Riesmeier
Tue, 2011-04-12, 17:24
Forum: DCMTK - General
Topic: image position information
Replies: 2
Views: 6827

Where exactly is the DCMTK aspect in your question? Anyway, I don't think that you can get exact coordinates from a DX image - see DICOM part 3 for details.
by Jörg Riesmeier
Tue, 2011-04-12, 17:17
Forum: DCMTK - General
Topic: modifying pixel data
Replies: 6
Views: 11898

If I understand your posting correctly, you would like to do all this without "real" programming, i.e. using the existing DCMTK command line tools only?
by Jörg Riesmeier
Mon, 2011-04-11, 16:45
Forum: DCMTK - General
Topic: DICOMDIR problem
Replies: 1
Views: 2380

Looking at the textual dump, it seems that the value of FileMetaInformationGroupLength is incorrect. (0004,1200) OffsetOfTheFirstDirectoryRecordOfTheRootDirectoryEntity belongs to the dataset and not to the file-meta information header. You could e.g. use dcmconv 3.6.0 with option --ignore-meta-leng...
by Jörg Riesmeier
Mon, 2011-04-11, 08:23
Forum: DCMTK - General
Topic: how to get the element's value of each individual frame
Replies: 7
Views: 9058

In both cases (shared and per-frame), the information is stored in an item of the corresponding sequence element. The only difference is that for the SharedFunctionalGroupsSequence information on all frames are stored in a single item, while for the PerFrameFunctionalGroupsSequence the information o...
by Jörg Riesmeier
Fri, 2011-04-08, 22:02
Forum: Third-Party DCMTK Applications
Topic: PHP DICOM Class
Replies: 4
Views: 16191

That was fast :-) Two short comments on the new version: $jpg_quality = 95; $this->jpg_file = $this->file . '.jpg'; $this->tiff_file = $this->file . '.tiff'; if(!$this->transfer_syntax) { $tags = new dicom_tag; $tags->file = $this->file; $tags->load_tags(); $this->transfer_syntax = $tags->get_tag('0...
by Jörg Riesmeier
Fri, 2011-04-08, 19:49
Forum: Third-Party DCMTK Applications
Topic: PHP DICOM Class
Replies: 4
Views: 16191

Thanks for using DCMTK for your project and for you posting in this forum :-) Btw, I just browsed trough your main PHP file: There's no need to distinguish between JPEG-compressed and uncompressed DICOM images; you can always use "dcmj2pnm" in order to create JPEG output images. This also avoids the...
by Jörg Riesmeier
Fri, 2011-04-08, 17:20
Forum: DCMTK - General
Topic: How do I add to the built-in dictionary
Replies: 4
Views: 4426

Read the API documentation of addEntry() :-)
by Jörg Riesmeier
Fri, 2011-04-08, 17:19
Forum: DCMTK - General
Topic: How do I add to the built-in dictionary
Replies: 4
Views: 4426

You need an exclusive lock on the global dictionary:

Code: Select all

DcmDataDictionary &dict = dcmDataDict.wrlock(); 
dict.addEntry(new DcmDictEntry(...)); 
dcmDataDict.unlock();
by Jörg Riesmeier
Fri, 2011-04-08, 09:05
Forum: DCMTK - General
Topic: Port permission check
Replies: 2
Views: 3010

Thank you for reporting this. I checked our source code repository and found out that this code (in a slightly different form) is present since the initial version of storescp about 15 years ago! Also all other SCPs that are part of the DCMTK check the incoming port with a similar code fragment. Nev...
by Jörg Riesmeier
Thu, 2011-04-07, 09:47
Forum: DCMTK - General
Topic: getCount() API crashing for compressed dicom images
Replies: 4
Views: 3497

There is no version 3.4 - do you man 3.5.4? The current version is 3.6.0, btw. i want to use getCount() and getInputCount() API. These API's are working fine for un compressed images but crashing for compressed images. I can only repeat: Have you checked that the image could be processed at all (usi...