Search found 17 matches

by csmeso
Wed, 2023-09-13, 14:07
Forum: DCMTK - General
Topic: How to change TransferSyntaxUID
Replies: 2
Views: 2587

How to change TransferSyntaxUID

We have got a bad DICOM file, containing wrong content in meta tag (0002,0010) TransferSyntaxUID: # Dicom-File-Format # Dicom-Meta-Information-Header # Used TransferSyntax: Little Endian Explicit (0002,0000) UL 216 # 4, 1 FileMetaInformationGroupLength (0002,0001) OB 00\01 # 2, 1 FileMetaInformation...
by csmeso
Mon, 2021-07-26, 16:17
Forum: DCMTK - General
Topic: Decompressing large multiframe dataset
Replies: 1
Views: 1843

Decompressing large multiframe dataset

I want to send a large JPEG-compressed multiframe dataset to an SCP which requires decompression (i.e. does not accept lossy compression). But decompressing using pDataset->chooseRepresentation() doesnt work because the uncompressed dataset is too large. I tried the same dataset to expand using dcmd...
by csmeso
Sun, 2017-10-08, 11:07
Forum: DCMTK - General
Topic: Log pattern problem
Replies: 0
Views: 63154

Log pattern problem

I try to use a custom pattern for file logging: const char *pattern = "%D{%Y-%m-%d %H:%M:%S.%q} %5p: %m%n"; OFunique_ptr<dcmtk::log4cplus::Layout> layout(new dcmtk::log4cplus::PatternLayout(pattern)); logfile->setLayout(OFmove(layout)); //... dcmtk::log4cplus::SharedAppenderPtr logfile(new...
by csmeso
Sun, 2017-10-08, 08:26
Forum: DCMTK - General
Topic: Copy a Dicom Tag
Replies: 5
Views: 5294

Re: Copy a Dicom Tag

Thank you for the quick response.
To copy the (only one) item of a SQ, is the following code correct?

Code: Select all

DcmItem *pItem = NULL;
cond = pSrcDataset->findAndGetSequenceItem(dcmSrcTag, pItem);
if (cond.bad()) return SetError(cond);
cond = pDstDataset->insertSequenceItem(dcmDstTag, pItem);
by csmeso
Sat, 2017-10-07, 15:21
Forum: DCMTK - General
Topic: Copy a Dicom Tag
Replies: 5
Views: 5294

Copy a Dicom Tag

I want to copy a tag content from one dataset (worklist record) to another dataset (image), while assigning a new tag. This should work with any VR, including deep copy of SQ. Examples: DCM_RequestedProcedureID of worklist response should be copied to DCM_StudyID of image created DCM_RequestedProced...
by csmeso
Mon, 2016-09-19, 12:30
Forum: DCMTK - General
Topic: SR parsing error
Replies: 1
Views: 3430

SR parsing error

When parsing an SR document from a new ultrasound device (with dsr2xml), I get some strange errors: E: Cannot add "has obs context NUM" to TEXT in Enhanced SR E: Reading content item "1.8.2.1" (Invalid by-value Relationship) E: Reading content item TEXT "1.8.2" (Invalid...
by csmeso
Thu, 2015-06-04, 09:00
Forum: DCMTK - General
Topic: DCMSCP not responding
Replies: 1
Views: 2784

DCMSCP not responding

We use the DcmTk to receive images from modalities. The call used is ASC_receiveAssociation( network, &assoc, m_maxReceivePDULength, NULL, NULL, OFFalse, DUL_NOBLOCK, 1); Sometimes it occurs, that the socket is no longer responding to connections at all. We found out that the socket state in tha...
by csmeso
Wed, 2013-02-06, 17:03
Forum: DCMTK - Installation
Topic: single dcmtk.dll
Replies: 7
Views: 16455

Re: single dcmtk.dll

Unfortunately, this doesn't solve the problem, because I need
DCMTK_MODULES = config;ofstd;oflog;dcmdata;dcmimgle;dcmimage;dcmjpeg;dcmjpls;dcmnet;dcmsr;dcmwlm
This list seems to be too long.
by csmeso
Thu, 2013-01-31, 18:28
Forum: DCMTK - Installation
Topic: single dcmtk.dll
Replies: 7
Views: 16455

Re: single dcmtk.dll

Thank you for fixing the issue regarding the private constructor. Nevertheless, I cannot compile as single DLL in VC6 (in VC 10 it works). The compiler gives no error, but no DLL is created. If this works on your side, please tell me the CMake settings which should work. (I need DCMTK_WITH_THREADS a...
by csmeso
Tue, 2013-01-15, 13:04
Forum: DCMTK - Installation
Topic: single dcmtk.dll
Replies: 7
Views: 16455

Re: single dcmtk.dll

I guess that this is the output from running the INSTALL target? I guess that I never tested this one... However, the output suggests that dcmtk.dll was not build. Do you get any error messages from the dcmtk target? No, I get no error from the INSTALL target. The message is the same when building ...
by csmeso
Mon, 2013-01-14, 11:47
Forum: DCMTK - Installation
Topic: single dcmtk.dll
Replies: 7
Views: 16455

single dcmtk.dll

In the november 2012 snapshot, you stated that now it is possible to build a single dcmtk.dll. I tried this, also with the latest snapshot dcmtk-8f6a406 downloaded today, but it doesnt work. I used VC6 and the CMake settings BUILD_SINGLE_SHARED_LIBRARY. CMake then automatically diabels BUILD_APPS an...
by csmeso
Sun, 2012-07-15, 13:59
Forum: DCMTK - General
Topic: Stack bug in DcmPixelData::getDecompressedColorModel()?
Replies: 1
Views: 3362

Re: Stack bug in DcmPixelData::getDecompressedColorModel()?

I solved it:
the Library was called from 2 DLLs which both statically linked the DcmTK. This is not allowed because the global data is created twice then.
by csmeso
Sun, 2012-07-15, 11:24
Forum: DCMTK - General
Topic: Stack bug in DcmPixelData::getDecompressedColorModel()?
Replies: 1
Views: 3362

Stack bug in DcmPixelData::getDecompressedColorModel()?

I have a strange problem: In the beginning of my application, I register some decoders: DJDecoderRegistration::registerCodecs(); DcmRLEDecoderRegistration::registerCodecs(); after that, &DcmCodecList::registeredCodecs = 0x065fc370 (example), and the list contains 7 elements ... later in the prog...
by csmeso
Fri, 2011-02-11, 17:04
Forum: DCMTK - General
Topic: Processing large (gigabytes) MPEG sequences
Replies: 1
Views: 11111

Processing large (gigabytes) MPEG sequences

I was very happy that you announced support for sending large DICOM elements without loading the whole element into memory in DCMTK 3.6. However, I didn't find any further information on how to use that feature (DcmWriteCache?). Do you have any sample code to get started with? Do the new versions of...
by csmeso
Mon, 2009-02-02, 17:39
Forum: DCMTK - General
Topic: DcmPixelSequenze::storeCompressedFrame()
Replies: 1
Views: 2869

DcmPixelSequenze::storeCompressedFrame()

When creating a multi-frame image using DcmPixelSequenze::storeCompressedFrame(), the offset in the offset list is sometimes wrong: if the image added has an odd length, it is padded to an even length, but the currentSize isn't corrected. This leads to wrong offsets in the offset table when generate...