DicomObjects.NET.8.48 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 System.Boolean
    'Usage
     
    
    Dim instance As ReadBehaviours
    Dim value As System.Boolean
     
    instance.DiscardBadIcons = value
     
    value = instance.DiscardBadIcons
    public System.bool DiscardBadIcons {get; set;}
    public read-write property DiscardBadIcons: System.Boolean; 
    public function get,set DiscardBadIcons : System.boolean
    public: __property System.bool get_DiscardBadIcons();
    public: __property void set_DiscardBadIcons( 
       System.bool value
    );
    public:
    property System.bool DiscardBadIcons {
       System.bool get();
       void set (    System.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: .NET CLR 4.8 or higher

    See Also