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
)
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.