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
)
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.
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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document