DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / Pixels Property



In This Topic
    Pixels Property
    In This Topic
    Accesses the raw pixel data as a typed array
    Syntax
    'Declaration
     
    Public Property Pixels As Object
    'Usage
     
    Dim instance As DicomImage
    Dim value As Object
     
    instance.Pixels = value
     
    value = instance.Pixels
    public object Pixels {get; set;}
    public:
    property Object^ Pixels {
       Object^ get();
       void set (    Object^ value);
    }
    Remarks

    This returns an array of either bytes or short or long integers, depending on the size of the native data. The data returned is unaffected by the display parameters.

    The first two dimensions of the array returned are those of the image itself, the third being the number of frames (as returned by FrameCount).

    If the data has more than one sample per pixel (e.Graphics. RGB images), then the format of the array returned depends on the planar configuration (0028,0006). If this is 0 (colour-by-pixel), then the 1st (horizontal) dimension of the array is multiplied by the number of samples, whereas if the planar configuration is 1 (colour-by-plane), then it is the 2nd (vertical) dimension that is increased. This ensures that each �row� of pixels remains intact.

    When writing to this property, either a 1, 2 or 3 dimensional array will be accepted, and will be interpreted as a byte or word stream, varying the first dimension fastest, then the others in order.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also