Search found 28 matches

by razvanux
Sun, 2010-08-15, 07:28
Forum: DCMTK - General
Topic: Question about Lossless JPEG encoding
Replies: 4
Views: 5000

Hi, Modality LUT, Window Level/Center etc. are adapted to the compression scheme in order to fit bit depths etc. So no image quality is lost, but the multiplications and offsets from LUTs and so on are just shifted into the pixel data and/or lead to adapted LUT settings. If you decompress the data ...
by razvanux
Fri, 2010-08-13, 16:48
Forum: DCMTK - General
Topic: Question about Lossless JPEG encoding
Replies: 4
Views: 5000

Question about Lossless JPEG encoding

Hello, When changing the represenation of an CT IOD from ELE to Jpeg Lossless Process 14 (1.2.840.10008.1.2.4.70) the Modality LUT transformations (Rescale + Window/Level) are being applied on the original image before being converted to JPEG. By following these transformation steps, the original da...
by razvanux
Wed, 2008-01-02, 13:04
Forum: DCMTK - General
Topic: Padding of string values
Replies: 2
Views: 3981

Weird. Module dcmdata contains code that "silently" replaces the C string zero terminators '\0' by a space padding for all value representations that require a space padding (not all do - UIDs for example MUST be padded with zero bytes). Make sure that you never instantiate DcmByteString ...
by razvanux
Sat, 2007-12-29, 10:59
Forum: DCMTK - General
Topic: Padding of string values
Replies: 2
Views: 3981

Padding of string values

Hello, In OFFIS versions 3.5.3 and 3.5.4, adding string values to dicom elements using putString places an invalid padding character of 0x0 when the passed string values have odd length. This results from the call to DcmElement::putValue from within DcmByteString::putString (call stack obtained when...
by razvanux
Tue, 2007-05-15, 15:38
Forum: DCMTK - General
Topic: selectReadable timeout Override
Replies: 0
Views: 16001

selectReadable timeout Override

Hello, in dimmove.cxx, the selectReadable function overrides the timeout parameter passed down through the function-call chain, basically rendering it useless: start line 121: if (subAssoc == NULL) { timeout = 1; /* poll wait until an assoc req or move rsp */ } else { if (blockMode == DIMSE_BLOCKING...
by razvanux
Sun, 2007-03-18, 09:46
Forum: DCMTK - General
Topic: DcmByteString::verify bug
Replies: 1
Views: 3336

DcmByteString::verify bug

Hello, There's a small bug in the verify method of DcmByteString but significant enough to cause validation errors on almost any IOD I am attempting a verify(OFFalse /* no autocorrect*/) . Below is a summary of the bug: Offending code OFCondition DcmByteString::verify(const OFBool autocorrect) { <sn...
by razvanux
Thu, 2007-03-08, 15:55
Forum: DCMTK - General
Topic: insertEmptyElement
Replies: 1
Views: 2769

insertEmptyElement

I believe I am missing something obvious here... Why isn't the DcmItem's insertEmptyElement not handling EVR_UL,EVR_US and other integer types? I know I can use newDicomElement(...) and take it from there I would like to understand the reason why the same is not implemented in insertEmptyElement. Th...
by razvanux
Tue, 2006-01-17, 11:29
Forum: DCMTK - General
Topic: STORESCP+directory structure
Replies: 3
Views: 5318

Hello Hans, Not really a response to your question, but just a remarque on the structure you propose: the relation between studies and patients is One Patient ----Many---> Studies and not One Study ---- Many---> Patients. So what I would do (once I do find an application that does the structuring yo...
by razvanux
Sat, 2005-11-12, 16:24
Forum: DCMTK - General
Topic: Dicom Image Size
Replies: 3
Views: 4828

Use stat.
Alternatively, use DcmFileFormat to load your file and use getLength.

But for something so trivial as obtaining the a file's size,

Code: Select all

stat
is what you do.
by razvanux
Fri, 2005-10-21, 14:08
Forum: DCMTK - General
Topic: Stuck storescu's
Replies: 7
Views: 8848

Thank you for pointing out the obvious Marco. It looks then that something else is really wrong here... Do I understand correctly that you have never observed such behavior? ... networkDataAvailable IS called before doing the recv in defragmentTCP, if DUL_NOBLOCK is specified. A quick look shows tha...
by razvanux
Wed, 2005-10-19, 13:36
Forum: DCMTK - General
Topic: Stuck storescu's
Replies: 7
Views: 8848

Thank you for your reply Thomas. No, there is no memory leak that is causing this and I am pretty certain about that. I do have memory leak detectors installed and a simple additional reasoning supproting this would be that if it were for such a leak, the workaround I've imlpemented would simply not...
by razvanux
Tue, 2005-10-18, 17:11
Forum: DCMTK - General
Topic: Stuck storescu's
Replies: 7
Views: 8848

Hello all... Further investigation of this issue led to the point of the actual problem: DcmTCPConnection::read. While the actual cause of the problem could not be determined, the issue was addressed by inserting a data-availability time-out loop just before calling the winsock's recv() function. Th...
by razvanux
Wed, 2005-09-21, 20:01
Forum: DCMTK - General
Topic: Stuck storescu's
Replies: 7
Views: 8848

Stuck storescu's

Hello all... I am using OFFIS in my dicom sender application (based on storescu) and I am experiencing a weird problem while trying to send a bunch of images to a destination PACS system. While I can set a sender to send images overnight to the destination, after sending several thousand images, it ...
by razvanux
Wed, 2005-05-11, 13:36
Forum: DCMTK - General
Topic: Navigating SR Tree
Replies: 2
Views: 4461

Jörg Riesmeier wrote:Why don't you use the public inline method DSRDocument::getTree() for this purpose?
I have no idea... Mental block, maybe? :oops:

Thank you Jörg.

Best regards,
Razvan
by razvanux
Wed, 2005-05-11, 12:41
Forum: DCMTK - General
Topic: Navigating SR Tree
Replies: 2
Views: 4461

Navigating SR Tree

Just another (probably annoying ) question: I am trying to navigate the SR tree from a dicom SR Document. The only way I can remember how to do this is by forcing my way into DsrDocument and changing the visibility of the document tree from private to protected and derive a class from DSRDocument. S...