DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImageCurvedMPR Class / SetCurve Method
User defined points in 3D real world space that are used to define the curved MPR projection
Size of the reconstructed output image in mm
Example

In This Topic
    SetCurve Method
    In This Topic
    Defines the coordinates of the curve to represent the curved MPR
    Syntax
    'Declaration
     
    
    Public Sub SetCurve( _
       ByVal Points(,) As System.Windows.Media.Media3D.Point3D, _
       ByVal Size As System.Drawing.SizeF _
    ) 
    public void SetCurve( 
       System.Windows.Media.Media3D.Point3D[,] Points,
       System.Drawing.SizeF Size
    )

    Parameters

    Points
    User defined points in 3D real world space that are used to define the curved MPR projection
    Size
    Size of the reconstructed output image in mm
    Remarks
    The array of points can have any dimension, and DicomObjects will interpolate between the points as required. The size (mm in real world units) needs to be provided explicitly rather than calculated from the points, as the points are not necessarily required to lie on a simple curved plane.
    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm);
    DicomVolume volume = new DicomVolume(image);
    DicomImageCurvedMPR curvedMPR = new DicomImageCurvedMPR(volume);
                        
    Point3D[,] curvePoints = new Point3D[1,5]
    {
        {
            new Point3D(-50, 0, 0), 
            new Point3D(-25, 10, 10),
            new Point3D(0, 20, 20),
            new Point3D(25, 10, 30),
            new Point3D(50, 0, 40)
        }
    }
                        
    SizeF outputSize = new SizeF(200, 100);
    curvedMPR.SetCurve(curvePoints, outputSize);     
    Viewer.Images.Add(curvedMPR);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also