CreateSagittalSlice(Double) Метод (MprImage)
Создает сагиттальный срез для выбранной позиции на этом изображении MPR.
Вот C#/VB.NET код, который демонстрирует, как создать коронарный и сагиттальный срезы изображения DICOM MPR.
''' <summary>
''' Creates the coronal and sagittal slices for MPR image.
''' </summary>
''' <param name="mprImage">The MPR image.</param>
''' <param name="coronalSlice">The coronal slice.</param>
''' <param name="sagittalSlice">The sagittal slice.</param>
Public Shared Sub CreateCoronalAndSagittalSlices(mprImage As Vintasoft.Imaging.Dicom.Mpr.MprImage, ByRef coronalSlice As Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice, ByRef sagittalSlice As Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice)
' create the coronal slice
coronalSlice = mprImage.CreateCoronalSlice(mprImage.YLength / 2.0)
' create the sagittal slice
sagittalSlice = mprImage.CreateSagittalSlice(mprImage.XLength / 2.0)
End Sub
/// <summary>
/// Creates the coronal and sagittal slices for MPR image.
/// </summary>
/// <param name="mprImage">The MPR image.</param>
/// <param name="coronalSlice">The coronal slice.</param>
/// <param name="sagittalSlice">The sagittal slice.</param>
public static void CreateCoronalAndSagittalSlices(
Vintasoft.Imaging.Dicom.Mpr.MprImage mprImage,
out Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice coronalSlice,
out Vintasoft.Imaging.Dicom.Mpr.MprPlanarSlice sagittalSlice)
{
// create the coronal slice
coronalSlice = mprImage.CreateCoronalSlice(mprImage.YLength / 2.0);
// create the sagittal slice
sagittalSlice = mprImage.CreateSagittalSlice(mprImage.XLength / 2.0);
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5