DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSet Class / ImportPixelData Method
The data fragments
The transfer synatax corresponding to the data



In This Topic
    ImportPixelData Method
    In This Topic
    Direct import of compressed pixel data
    Syntax
    'Declaration
     
    Public Sub ImportPixelData( _
       ByVal CompressedData As IEnumerable(Of Byte()), _
       ByVal TransferSyntax As String _
    ) 
    'Usage
     
    Dim instance As DicomDataSet
    Dim CompressedData As IEnumerable(Of Byte())
    Dim TransferSyntax As String
     
    instance.ImportPixelData(CompressedData, TransferSyntax)
    public void ImportPixelData( 
       IEnumerable<byte[]> CompressedData,
       string TransferSyntax
    )
    public:
    void ImportPixelData( 
       IEnumerable<array<byte>>^ CompressedData,
       String^ TransferSyntax
    ) 

    Parameters

    CompressedData
    The data fragments
    TransferSyntax
    The transfer synatax corresponding to the data
    Remarks

    This is an advanced technique, as no validation or data extraction is performed by DicomObjects, so those using it are responsible for setting all related attributes directly, including:

    • Rows and columns
    • Photometric Interpretation
    • Frame Count
    • The bit depth values (0028,0100-0028,0103)

    For MPEG, there must only be one fragment, covering all frames. For other transfer syntaxes, there is normally one fragment per frame.

    This method should not normally be used to import JPEG images, as most "normal" JPEG images have a JFIF header which is not permitted in DICOM - use the DicomImage.Import method instead.

    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also