Search found 2504 matches

by J. Riesmeier
Mon, 2012-08-20, 07:29
Forum: DCMTK - Installation
Topic: 3.6.1 does not compile on gcc 3.3
Replies: 3
Views: 5421

Re: 3.6.1 does not compile on gcc 3.3

Thanks again for your report (and your feedback). The fix has just been committed to the git repository.
by J. Riesmeier
Fri, 2012-08-17, 13:44
Forum: DCMTK - General
Topic: Convert PDF to DICOM SC
Replies: 3
Views: 4517

Re: Convert PDF to DICOM SC

Of course, you could convert the PDF to a common image format (bitmap) and then use img2dcm for the creation of a DICOM SC image.
by J. Riesmeier
Fri, 2012-08-17, 07:33
Forum: DCMTK - Installation
Topic: 3.6.1 does not compile on gcc 3.3
Replies: 3
Views: 5421

Re: 3.6.1 does not compile on gcc 3.3

Does it work when you apply the following patch? diff --git a/dcmdata/tests/telemlen.cc b/dcmdata/tests/telemlen.cc index d30dcb7..3724057 100644 --- a/dcmdata/tests/telemlen.cc +++ b/dcmdata/tests/telemlen.cc @@ -1,6 +1,6 @@ /* * - * Copyright (C) 2011, OFFIS e.V. + * Copyright (C) 2011-2012, OFFIS...
by J. Riesmeier
Fri, 2012-08-17, 07:15
Forum: DCMTK - General
Topic: putFloat32 segmentation fault
Replies: 6
Views: 6827

Re: putFloat32 segmentation fault

Yes, because internally the length value passed to the constructor is stored, but the memory is not allocated.
by J. Riesmeier
Thu, 2012-08-16, 07:27
Forum: DCMTK - General
Topic: putFloat32 segmentation fault
Replies: 6
Views: 6827

Re: putFloat32 segmentation fault

Could you please try to construct the DcmFloatingPointSingle with len=0 and then call putFloat32() in increasing order of the pos parameter, i.e. 0, 1, 2, ... This is because (taken from the API documentation of DcmElement): * @param pos position for insert operation. Value: pos <= getVM(), i.e. a v...
by J. Riesmeier
Thu, 2012-08-16, 07:15
Forum: DCMTK - General
Topic: VR for DcmFloatingPointSingle
Replies: 2
Views: 3079

Re: VR for DcmFloatingPointSingle

Unless the private tag is part of the data dictionary (which includes the VR), you have to specify the VR explicitly to the DcmTag constructor. See the following HOWTO.
by J. Riesmeier
Wed, 2012-08-15, 08:21
Forum: DCMTK - General
Topic: Adding content items to SR tree with AM_beforeCurrent fails
Replies: 3
Views: 3423

Re: Adding content items to SR tree with AM_beforeCurrent fa

Good catch! Thank you for the report and suggested fix. I would propose the following (slightly different) patch: diff --git a/dcmsr/libsrc/dsrtree.cc b/dcmsr/libsrc/dsrtree.cc index 5b666c3..4cea6b0 100644 --- a/dcmsr/libsrc/dsrtree.cc +++ b/dcmsr/libsrc/dsrtree.cc @@ -1,6 +1,6 @@ /* * - * Copyrigh...
by J. Riesmeier
Wed, 2012-08-15, 07:06
Forum: DCMTK - General
Topic: putFloat32 segmentation fault
Replies: 6
Views: 6827

Re: putFloat32 segmentation fault

Which version of the DCMTK are you using?

Btw, the "len" parameter in the DcmFloatingPointSingle constructor takes the length in bytes and not the number of values (VM). And, there is also a putFloat32Array() method ...
by J. Riesmeier
Wed, 2012-08-15, 07:02
Forum: DCMTK - General
Topic: DiPixel::getData() vs. DicomImage::getOutputData()
Replies: 4
Views: 5446

Re: DiPixel::getData() vs. DicomImage::getOutputData()

Almost correct, and the main purpose of the DICOM image class is visualization/display of images, i.e. not accessing raw data. So, the access to the internal representation has been added later because many users asked for it. Btw, the modality LUT transformation is already applied to the internal p...
by J. Riesmeier
Tue, 2012-08-14, 16:12
Forum: DCMTK - General
Topic: DiPixel::getData() vs. DicomImage::getOutputData()
Replies: 4
Views: 5446

Re: DiPixel::getData() vs. DicomImage::getOutputData()

If you need the raw (not the rendered) pixel data, then getInterData() is what you should probably use.
by J. Riesmeier
Tue, 2012-08-14, 16:03
Forum: DCMTK - General
Topic: CIF_IgnoreModalityTransformation flag
Replies: 1
Views: 3221

Re: CIF_IgnoreModalityTransformation flag

Reading the documentation should help:

Code: Select all

/// ignore modality transformation (rescale slope/intercept or LUT) stored in the dataset
by J. Riesmeier
Wed, 2012-07-25, 13:24
Forum: DCMTK - General
Topic: Problems with presentation state?
Replies: 11
Views: 11958

Re: Problems with presentation state?

Nothing is wrong. By default, no VOI window is selected, so the whole range of input values is mapped to the available range of output values. Read about VOI (Value of Interest) transformation if you do not understand this ...
by J. Riesmeier
Wed, 2012-07-25, 13:04
Forum: DCMTK - General
Topic: Problems with presentation state?
Replies: 11
Views: 11958

Re: Problems with presentation state?

Did you already check what the output of dcm2pnm for this particular image is? If it's bad, does it improve with option +Wm?