Search Results for

    Show / Hide Table of Contents

    Class ImageLocalizer

    Inheritance
    Object
    ImageLocalizer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.Imaging
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ImageLocalizer

    Methods

    CalcualteIntersectionLocalizer(FrameGeometry, FrameGeometry, out Point2, out Point2)

    This method calculates the localizer line of the sourceFrame that can be drawn on the destinationFrame. You should call the method CanDrawLocalizer prior to check if localizer calculation is valid on the two frames.

    This method returns the line of common pixels where the two images intersect. If the two images intersect, then it returns

    true
    and the out parameters are filled with values. Otherwise the method returns
    false

    Declaration
    public static bool CalcualteIntersectionLocalizer(FrameGeometry sourceFrame, FrameGeometry destinationFrame, out Point2 startPoint, out Point2 endPoint)
    Parameters
    Type Name Description
    FrameGeometry sourceFrame

    The geometry of the frame, that is viewed by the user

    FrameGeometry destinationFrame

    The geometry of the scout frame, where the localizer line should be drawn on

    Point2 startPoint

    If the frames intersect, then this contains the start point of the localizer line in terms of pixels on destinationFrame

    Point2 endPoint

    If the frames intersect, then this contains the end point of the localizer lin in terms of pixels on destinationFrame

    Returns
    Type Description
    Boolean

    CalcualteProjectionLocalizer(DicomDataset, DicomDataset, out List<Point2>)

    This method calculates the localizer rectangle of the sourceFrame that can be drawn on the destinationFrame. You should call the method CanDrawLocalizer prior to check if localizer calculation is valid on the two frames. This method will return the 4 points of a rectangle, although most image sets are orthogonal, resulting in the rectangle being presented as a straight line on the scout image. Since the source image is projected on the destination image there might me a result even if the two images do not intersect

    Declaration
    public static void CalcualteProjectionLocalizer(DicomDataset sourceFrame, DicomDataset destinationFrame, out List<Point2> localizerPoints)
    Parameters
    Type Name Description
    DicomDataset sourceFrame

    The dataset of the frame, that is viewed by the user

    DicomDataset destinationFrame

    The dataset of the scout frame, where the localizer line should be drawn on

    List<Point2> localizerPoints

    This contains the points of the localizer rectangle in terms of pixels on destinationFrame

    CanDrawLocalizer(FrameGeometry, FrameGeometry)

    This method performes some checks, if it is valid or allowed that the location of the sourceFrame is drawn on the destinationFrame. This check should be called at least once before the more computation intensive method CalcualteLocalizer is called.

    Declaration
    public static bool CanDrawLocalizer(FrameGeometry sourceFrame, FrameGeometry destinationFrame)
    Parameters
    Type Name Description
    FrameGeometry sourceFrame
    FrameGeometry destinationFrame
    Returns
    Type Description
    Boolean
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors