←Select platform

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

Summary

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

Syntax
C#
VB
C++
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 
) 
public:  
   void MemoryEfficientSetFrame( 
       RasterImage^ image, 
      Int32 frameIndex, 
      Point3D^ imagePosition, 
      bool remove, 
      Single slope, 
      Single intercept, 
      Int32 windowWidth, 
      Int32 windowCenter 
   ) 

Parameters

image

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

frameIndex

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

imagePosition

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

remove

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

slope

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

intercept

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

windowWidth

The window level width value of the slice.

windowCenter

The window level center value of the slice.

Remarks

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.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical3D Assembly