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

In This Topic
    FrameSubSets Method (DicomImage)
    In This Topic
    Generates a collection of DicomImage each representing a frame as specified in Frames
    Syntax
    'Declaration
     
    
    Public Function FrameSubSets( _
       ByVal Frames As System.Collections.Generic.IEnumerable(Of UInteger) _
    ) As DicomImageCollection
    public DicomImageCollection FrameSubSets( 
       System.Collections.Generic.IEnumerable<uint> Frames
    )

    Parameters

    Frames
    Requested frame numbers

    Return Value

    Subset DicomImage that includes the requested frames
    Example
    DicomImage enhancedDs = new DicomImage("Enhanced_Dataset.dcm");
    List<uint> frames = new List<uint>()
    {
        10, 20, 30
    };
                
    // A DicomImage collection containing 3 DicomImages — one for each selected frame.
    var subsetDs = enhancedDs.FrameSubSets(frames);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also