DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / PixelValuesByFrame Method
The 1-based frame number to retrieve
Controls whether to apply the scale/offset or Modality LUT if present



In This Topic
    PixelValuesByFrame Method
    In This Topic
    Returns an array of pixel values for a frame, optionally transformed via the modality transformation
    Syntax
    'Declaration
     
    Public Function PixelValuesByFrame( _
       ByVal Frame As Integer, _
       ByVal ModalityTransform As Boolean _
    ) As Single()
    'Usage
     
    Dim instance As DicomImage
    Dim Frame As Integer
    Dim ModalityTransform As Boolean
    Dim value() As Single
     
    value = instance.PixelValuesByFrame(Frame, ModalityTransform)
    public float[] PixelValuesByFrame( 
       int Frame,
       bool ModalityTransform
    )
    public:
    array<float>^ PixelValuesByFrame( 
       int Frame,
       bool ModalityTransform
    ) 

    Parameters

    Frame
    The 1-based frame number to retrieve
    ModalityTransform
    Controls whether to apply the scale/offset or Modality LUT if present

    Return Value

    Array of float values representing the (possibly transformed) pixel values
    Remarks
    Even if ModalityTransform is false, the values are still masked to the relevent bit length and interpretted as sign/unsigned. This differs from RawPixelValuesByFrame.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also