DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / FrameSubSet Method
Requested frame numbers
Example

In This Topic
    FrameSubSet Method (DicomImage)
    In This Topic
    Generates a new DicomImage 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 DicomImage
    public DicomImage FrameSubSet( 
       System.Collections.Generic.IEnumerable<uint> Frames
    )

    Parameters

    Frames
    Requested frame numbers

    Return Value

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

    Target Platforms: .NET CLR 4.8 or higher

    See Also