Search found 15 matches

by csmeso
Sun, 2017-10-08, 11:07
Forum: DCMTK - General
Topic: Log pattern problem
Replies: 0
Views: 1923

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 dcmtk::lo...
by csmeso
Sun, 2017-10-08, 08:26
Forum: DCMTK - General
Topic: Copy a Dicom Tag
Replies: 5
Views: 2875

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

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

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-value Relationship) E: Rea...
by csmeso
Thu, 2015-06-04, 09:00
Forum: DCMTK - General
Topic: DCMSCP not responding
Replies: 1
Views: 1725

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 that fa...
by csmeso
Wed, 2013-02-06, 17:03
Forum: DCMTK - Installation
Topic: single dcmtk.dll
Replies: 7
Views: 12140

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

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

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

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

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

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 program,...
by csmeso
Fri, 2011-02-11, 17:04
Forum: DCMTK - General
Topic: Processing large (gigabytes) MPEG sequences
Replies: 1
Views: 6070

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

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...
by csmeso
Wed, 2006-06-21, 11:35
Forum: DCMTK - General
Topic: file offset of pixel data
Replies: 3
Views: 4093

file offset of pixel data

Thank you for that - not very helpful - reply. In the meantime, I played a little with DicomImage class. Another idea for comfortable access to such image sequences would be if you wouldn't load the entire image sequence in the constructor of DicomImage, but load only the requested images when calli...
by csmeso
Tue, 2006-06-20, 10:41
Forum: DCMTK - General
Topic: file offset of pixel data
Replies: 3
Views: 4093

file offset of pixel data

I have to read large uncompressed image sequences (>100MB). It is possible to get the pixel data with Uint8 *pixelData=NULL; result=dpix->getUint8Array(pixelData); But this takes a lot of memory. I want to get the pixel data frame by frame. The idea is to get the file offset of the pixel data and th...