DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / RawPixelValuesByFrame Method
The 1-based frame number to retrieve
Example

In This Topic
    RawPixelValuesByFrame Method
    In This Topic
    Returns an array of raw pixel values for a frame
    Syntax
    'Declaration
     
    
    Public Function RawPixelValuesByFrame( _
       ByVal Frame As System.Integer _
    ) As System.Array
    public System.Array RawPixelValuesByFrame( 
       System.int Frame
    )

    Parameters

    Frame
    The 1-based frame number to retrieve

    Return Value

    Array of values representing the raw pixel values before masking, signing interpretation, or modality transformations
    Remarks
    For interpreted values (with or with use of the modality transformation, see PixelValuesByFrame.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    int frame = 1;
    var rawPixels = image.RawPixelValuesByFrame(frame);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also