Project

General

Profile

Actions

Feature #587

closed

Method getUncompressedFrameSize() misses robustness and log output

Added by Jörg Riesmeier over 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Library
Target version:
Start date:
2014-02-05
Due date:
% Done:

100%

Estimated time:
Module:
dcmdata
Operating System:
Compiler:

Description

The DcmElement::getUncompressedFrameSize() method is not very robust and not very verbose with regards to log output.

E.g., when a DICOM image with PhotometricInterpretation "YBR_FULL_422" specifies a wrong value for SamplesPerPixel ("1"), the log output is

E: can't decompress first frame: Buffer for decompressed image (8 bits/sample) too small

and the image is not processed. It would be interesting to know more details about the reason, and, preferably, the value of PhotometricInterpretation should be checked for plausibility (to give a hint on the logger).


Related issues 1 (0 open1 closed)

Related to DCMTK - Bug #568: Output of getDecompressedColorModel() is not very useful (in case of error)ClosedJörg Riesmeier2013-10-24

Actions
Actions

Also available in: Atom PDF