MemoryEfficientSetFrame(RasterImage,int,Point3D,bool,float,float,int,int) Method


Adds a data slice to the 3D object from the specified Leadtools.RasterImage.

public void MemoryEfficientSetFrame( 
   RasterImage image, 
   int frameIndex, 
   Point3D imagePosition, 
   bool remove, 
   float slope, 
   float intercept, 
   int windowWidth, 
   int windowCenter 
Public Sub MemoryEfficientSetFrame( 
   ByVal image As RasterImage, 
   ByVal frameIndex As Integer, 
   ByVal imagePosition As Point3D, 
   ByVal remove As Boolean, 
   ByVal slope As Single, 
   ByVal intercept As Single, 
   ByVal windowWidth As Integer, 
   ByVal windowCenter As Integer 
   void MemoryEfficientSetFrame( 
       RasterImage^ image, 
      Int32 frameIndex, 
      Point3D^ imagePosition, 
      bool remove, 
      Single slope, 
      Single intercept, 
      Int32 windowWidth, 
      Int32 windowCenter 



Leadtools.RasterImage used to fill a portion of the object.


The index that represents the place in the 3D object in which the image is set.


The position of the frame being set. Get this value from the DICOM file.


true to dispose of the image after copying its data and placing it into the 3D object; otherwise, false.


The slope value of the slice. Get this value from the DICOM file.


The intercept value of the slice. Get this value from the DICOM file.


The window level width value of the slice.


The window level center value of the slice.


Be sure to add the Medical3DObject to the Medical3DContainer before using this method. For more information, refer to the Medical3DContainer.Objects collection.

You must first initialize the memory efficient feature before using this method. To initialize the feature, call the MemoryEfficientInit method.

You need to call this method multiple times, each with a different frameIndex, in order to fill the 3D object. The number of times is based on the depth parameter (the number of frames needed to create the 3D object) used when calling MemoryEfficientInit.

You do not need to set frames in order. However, you need to fill the entire object by covering all the indices from 0 to (_depth_ - 1). Any area not filled will be black when rendering the object.

Use the MemoryEfficientSetFrame(RasterImage,int,Point3D,bool,float,float,int,int) overload to sort the series frames based on their ImagePositionPatient Dicom tag.

Target Platforms
Help Version 21.0.2021.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical3D Assembly