Search found 40 matches

by Niels Dekker
Sun, 2007-09-16, 16:55
Forum: DCMTK - General
Topic: Undefined behavior (assert by isalpha) in DcmItem::foundVR
Replies: 8
Views: 9647

Undefined behavior (assert by isalpha) in DcmItem::foundVR

At the LKEB we often have assert failures when trying to read a file by using DcmFileFormat::loadFile(). The assert failures are caused by DcmItem::foundVR(), dcmtk-3.5.4\dcmdata\libsrc\dcitem.cxx (line 152): if (isalpha(c1) && isalpha(c2)) The call stack is as follows: DcmItem::foundVR() Dc...
by Niels Dekker
Thu, 2007-02-22, 21:00
Forum: DCMTK - General
Topic: How to increase precision of DcmFileFormat::writeXML?
Replies: 2
Views: 3408

Marco Eichelberg: I am not sure if a precision of DBL_DIG+2 would give any advantage over a precision of DBL_DIG, but it would certainly not cause harm either. I must admit I don't really know why DBL_DIG (15) would not give full precision, but I tested it for sprintf: double doubleVal = DBL_MIN; ch...
by Niels Dekker
Tue, 2007-02-20, 14:13
Forum: DCMTK - General
Topic: How to increase precision of DcmFileFormat::writeXML?
Replies: 2
Views: 3408

How to increase precision of DcmFileFormat::writeXML?

We would like to write DICOM information into an XML file, using DCMTK 3.5.4. Unfortunately DcmFileFormat::writeXML appears to have a very limited precision, when writing floating point values. DcmFileFormat::writeXML appears to depend upon DcmFloatingPointDouble::getOFString, which does: // From dc...
by Niels Dekker
Fri, 2005-06-03, 17:14
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

Sounds like I need some kind of workaround... Can you please tell me how to modify my copy of DCMTK, so that it would accept the US file that I sent you? It seems like I got the same kind of problems for images from various Intravascular Ultrasound imagers. So in the end it might be worth updating t...
by Niels Dekker
Thu, 2005-06-02, 12:35
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

Hi Jörg,

Last Monday I sent you an Ultrasound image file from the Leiden University Medical Center (LUMC). Did you get this e-mail? And were you able to get the image file out of the password protected ZIP file?

Kind regards,

Niels
by Niels Dekker
Fri, 2005-05-27, 16:48
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

Thanks again, Jörg. Yes, I think our US images are correct. The images are directly from the imager (Intravascular Ultrasound). They are displayed correctly by viewers like IrfanView (including its plugins) and the Sante Dicom Viewer. I'm not sure if I'm allowed to send you one, though. I'd have to ...
by Niels Dekker
Fri, 2005-05-27, 15:59
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

My collegues helped me compiling "dcm2pnm". Unfortunately it says: D:\dcmtk\dcmimage\apps\Debug>dcm2pnm.exe MyUltrasound.dcm ERROR: cannot change to unencapsulated representation for pixel data ! $dcmtk: dcmj2pnm v3.5.2 2002-12-23 $ dcmj2pnm: Convert DICOM images to PGM, PPM, BMP, TIFF or ...
by Niels Dekker
Fri, 2005-05-27, 11:53
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

myDicomImage.getStatus() returns 0 when I read a DICOM file successfully. But for my US files it returns 4 (EIS_InvalidValue). I added the following code to my app, I guess that's what you mean by enabling the verbose/debug mode... DicomImageClass::setDebugLevel(DicomImageClass::DL_NoMessages | Dico...
by Niels Dekker
Fri, 2005-05-27, 09:25
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

Thanks for your reply. Actually I did #include "diregist.h", but still my application can't read those Ultrasound DICOM files. Please let me know if you have any more suggestions... Here's my application. It was compiled by MSVC++ 7.1 on Win XP SP2: #include <cstdlib> #include <cstdio> #in...
by Niels Dekker
Thu, 2005-05-26, 17:30
Forum: DCMTK - General
Topic: Does DCMTK support Ultrasound Multiframe (RLE Lossless)?
Replies: 17
Views: 27735

Does DCMTK support Ultrasound Multiframe (RLE Lossless)?

My C++ function "TryToReadDicomFile" uses the DCTKM class DicomImage to get data from a DICOM file, but it fails if the DICOM file is an Ultrasound Multiframe image, having RLE Lossless compression. Does DCMTK support reading this file format? // My function... fails on Ultrasound/RLE! boo...