DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / PixelsToValuesOLD Method
The raw pixel data to be converted
The frame index of the DICOM image
If true applies Modality LUT transformations or slope/intercept scaling else returns raw pixel values
Example

In This Topic
    PixelsToValuesOLD Method
    In This Topic
    Converts raw pixel data from the DICOM image into numerical values, which can be either raw or scaled.
    Syntax
    'Declaration
     
    
    Public Function PixelsToValuesOLD( _
       ByVal input As System.Array, _
       ByVal Frame1 As System.Integer, _
       ByVal Scale As System.Boolean _
    ) As System.Single()
    public System.float[] PixelsToValuesOLD( 
       System.Array input,
       System.int Frame1,
       System.bool Scale
    )

    Parameters

    input
    The raw pixel data to be converted
    Frame1
    The frame index of the DICOM image
    Scale
    If true applies Modality LUT transformations or slope/intercept scaling else returns raw pixel values

    Return Value

    An array containing the converted pixel values, either raw or scaled.
    Remarks
    This method is considered outdated
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    var rawPixelData = image.GetRawFrame(1, false);
    var physicalValues = image.PixelsToValuesOLD(rawPixelData, 1, true);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also