DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImageCollection Class / MakeEnhancedMultiFrame Method
True if the images should be removed from the collection after this function call.
Example

In This Topic
    MakeEnhancedMultiFrame Method
    In This Topic
    Creates a single enhanced multi-frame object from a collection of individual images.
    Syntax
    'Declaration
     
    
    Public Function MakeEnhancedMultiFrame( _
       ByVal Remove As System.Boolean _
    ) As DicomImage
    public DicomImage MakeEnhancedMultiFrame( 
       System.bool Remove
    )

    Parameters

    Remove
    True if the images should be removed from the collection after this function call.

    Return Value

    The new DicomImage
    Remarks

    Constructs a single enhanced multi-frame image from a series of identically-sized single frame images, which have been collected into a DicomImageCollection. If the argument is true, the images are removed from the collection as they are added to the new object. Unlike MakeMultiFrame, data is taken from all frames, and incorporated into the Common or PerFrame functional groups, not from the first image only.

    Note that the newly created multi-frame image may need some modifications, as DicomObjects has no knowledge of many attributes which only exist in enhanced images but it does do much of the hard work

    If you find any attributes which you feel should be moved to functional groups but which are not, then please contact support@medicalconnections.co.uk

    Example
    DicomImageCollection imageCollection = new DicomImageCollection();
     DicomImage finalMFImage = new DicomImage();
      
     DicomImage image1 = new DicomImage("your_dicom_image1.dcm");
     DicomImage image2 = new DicomImage("your_dicom_image2.dcm");
     DicomImage image3 = new DicomImage("your_dicom_image3.dcm");
      
     imageCollection.Add(image1);
     imageCollection.Add(image2);
     imageCollection.Add(image3);
      
     bool removeFromCollection = false;
     finalMFImage = imageCollection.MakeEnhancedMultiFrame(removeFromCollection);
      
    // Optionally write resulting multiframe image to disk
    finalMFImage.Write("output_image.dcm");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also