DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / FrameSubSet(IEnumerable<UInt32>) Method
Requested frame numbers
Example

In This Topic
    FrameSubSet(IEnumerable<UInt32>) Method
    In This Topic
    Generates a new DicomDataSet as a subset of the current instance as described in supplement 119
    Syntax
    'Declaration
     
    
    Public Function FrameSubSet( _
       ByVal Frames As System.Collections.Generic.IEnumerable(Of UInteger) _
    ) As DicomDataSet
    public DicomDataSet FrameSubSet( 
       System.Collections.Generic.IEnumerable<uint> Frames
    )

    Parameters

    Frames
    Requested frame numbers

    Return Value

    Subset DicomDataSet that includes the requested frames
    Example
    DicomDataSet enhancedDs = new DicomDataSet("Enhanced_Dataset.dcm");
    List<uint> frames = new List<uint>()
    {
        10, 20, 30
    };
                        
    // a new DicomDataSet with 3 frames
    var subsetDs = enhancedDs.FrameSubSet(frames);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also