Table of Contents

Class ImageLocalizer

Namespace
FellowOakDicom.Imaging
Assembly
fo-dicom.core.dll
public static class ImageLocalizer
Inheritance
ImageLocalizer
Inherited Members

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
public static bool CalcualteIntersectionLocalizer(FrameGeometry sourceFrame, FrameGeometry destinationFrame, out Point2 startPoint, out Point2 endPoint)

Parameters

sourceFrame FrameGeometry

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

destinationFrame FrameGeometry

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

startPoint Point2

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

endPoint Point2

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

Returns

bool

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

public static void CalcualteProjectionLocalizer(DicomDataset sourceFrame, DicomDataset destinationFrame, out List<Point2> localizerPoints)

Parameters

sourceFrame DicomDataset

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

destinationFrame DicomDataset

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

localizerPoints List<Point2>

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.

public static bool CanDrawLocalizer(FrameGeometry sourceFrame, FrameGeometry destinationFrame)

Parameters

sourceFrame FrameGeometry
destinationFrame FrameGeometry

Returns

bool