DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / DistanceFromPoint Method
The reference point
Frame within the image being used for calculation
Example

In This Topic
    DistanceFromPoint Method
    In This Topic
    Perpendicular distance from a Point to the plane of this image
    Syntax
    'Declaration
     
    
    Public Overridable Function DistanceFromPoint( _
       ByVal Point As System.Windows.Media.Media3D.Point3D, _
       ByVal Frame As System.Integer _
    ) As System.Nullable(Of Single)
    public virtual System.Nullable<float> DistanceFromPoint( 
       System.Windows.Media.Media3D.Point3D Point,
       System.int Frame
    )

    Parameters

    Point
    The reference point
    Frame
    Frame within the image being used for calculation

    Return Value

    Distance in mm
    Remarks
    The distance may be positive/negative
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    Point3D referencePoint = new Point3D(250.0F, 250.0f, 50.0f);
    int frameIndex = 5;
    float? distance = image.DistanceFromPoint(referencePoint, frameIndex);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also