DicomObjects.NET.V8
DicomObjects.DicomCodecs Namespace / ICompressor Interface / PrepareFunction Method
Standard argument for PrepareCompress



In This Topic
    PrepareFunction Method (ICompressor)
    In This Topic
    Make any changes to the main dataset, before doing the frame-by-frame compression, and inform DicomObjects of any preprocessing required.
    Syntax
    'Declaration
     
    Sub PrepareFunction( _
       ByVal args As ModificationArguments _
    ) 
    'Usage
     
    Dim instance As ICompressor
    Dim args As ModificationArguments
     
    instance.PrepareFunction(args)
    void PrepareFunction( 
       ModificationArguments args
    )
    void PrepareFunction( 
       ModificationArguments^ args
    ) 

    Parameters

    args
    Standard argument for PrepareCompress
    Remarks
    Details vary according to the compression method, but examples include:
    • For some compression methods, a transform is needed to bring the data into the 12 bit unsigned range (e.g. JPEG lossy extended)
    • For colour images, the photometric interpretation of the dataset may need to be changed to (e.g. to YBR_FULL_422 for JPEG lossy)

    By changing the values in ModificationArguments, a compressor can control how the pixel data is passed to it by DicomObjects, or how some other values are later changed:

    Setting ModificationArgs.LossyDescription to a human description and and ModificationArgs.LossyMethod to a codec values (e.g. "ISO_10918_1" for JPEG)

    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also