DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabel Class / Threshold Method
The minimum value to include in the new DicomLabel
The maximum value to include in the new DicomLabel
The image from which the pixel data is taken for the calculations
If true, then the rescale slope and offset are applied to the data values






In This Topic
    Threshold Method
    In This Topic
    Makes a bitmap label by thresholding an existing label
    Syntax
    'Declaration
     
    
    Public Function Threshold( _
       ByVal Min As System.Single, _
       ByVal Max As System.Single, _
       ByVal Image As DicomImage, _
       ByVal Scale As System.Boolean _
    ) As DicomLabel
    'Usage
     
    
    Dim instance As DicomLabel
    Dim Min As System.Single
    Dim Max As System.Single
    Dim Image As DicomImage
    Dim Scale As System.Boolean
    Dim value As DicomLabel
     
    value = instance.Threshold(Min, Max, Image, Scale)
    public DicomLabel Threshold( 
       System.float Min,
       System.float Max,
       DicomImage Image,
       System.bool Scale
    )
    public function Threshold( 
        Min: System.Single;
        Max: System.Single;
        Image: DicomImage;
        Scale: System.Boolean
    ): DicomLabel; 
    public function Threshold( 
       Min : System.float,
       Max : System.float,
       Image : DicomImage,
       Scale : System.boolean
    ) : DicomLabel;
    public: DicomLabel* Threshold( 
       System.float Min,
       System.float Max,
       DicomImage* Image,
       System.bool Scale
    ) 
    public:
    DicomLabel^ Threshold( 
       System.float Min,
       System.float Max,
       DicomImage^ Image,
       System.bool Scale
    ) 

    Parameters

    Min
    The minimum value to include in the new DicomLabel
    Max
    The maximum value to include in the new DicomLabel
    Image
    The image from which the pixel data is taken for the calculations
    Scale
    If true, then the rescale slope and offset are applied to the data values

    Return Value

    A new DicomLabel
    Remarks

    The DicomLabel to which this method is applied must be of a type which defines an area, i.e. Rectangle, Ellipse, Polygon, or Bitmap.

    The result is a new label (unattached to any collection) of type Bitmap, which consists of all those points in the original label whose values (after applying scaling if necessary) fall with the range Min to Max inclusive.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also