DicomObjects.NetStandard Documentation
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
    )

    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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also