DicomObjects.NET Core Documentation
DicomObjects Namespace / ReadBehaviours Class / DiscardBadIcons Property



In This Topic
    DiscardBadIcons Property
    In This Topic
    Controls how "bad icons" are handled.
    Syntax
    'Declaration
     
    
    Public Property DiscardBadIcons As Boolean
    'Usage
     
    
    Dim instance As ReadBehaviours
    Dim value As Boolean
     
    instance.DiscardBadIcons = value
     
    value = instance.DiscardBadIcons
    public bool DiscardBadIcons {get; set;}
    public:
    property bool DiscardBadIcons {
       bool get();
       void set (    bool value);
    }
    Remarks

    Unfortunately, many DICOM files from a certan large manufacturer, commonly contain "thumbnail" sequences, which break the DICOM rules, as they have explicit length, indicating that they are uncompressed, when in fact they are compressed (and even then, they don't follow th encapsulation rules for compressed pixel data!)

    If set to true, then such defective icons (which where not in the original images and can be seen as "damage" by the PACS) are silently removed from the data at the time it is read - leaving only a warning in the log file.

    The default value of this property is derived from the DiscardBadIcons value of the internal registry, which in turn has a default value of 0, causing this property to be false.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also