Table of Contents

Class FrameGeometry

Namespace
FellowOakDicom.Imaging
Assembly
fo-dicom.core.dll
public class FrameGeometry
Inheritance
FrameGeometry
Inherited Members
Extension Methods

Constructors

FrameGeometry(DicomDataset, int)

A convenience class that extracts all data from a DicomDataset, that is relevant for geometry calculations.

public FrameGeometry(DicomDataset image, int frame = 0)

Parameters

image DicomDataset

The DicomDataset where the information is extracted from

frame int

An optional zero-based frame index. If not provided, then frame 0 is taken. In case of EnhancedCT or EnhancedMR the geometry data will be different for each frame

FrameGeometry(string, double[], double[], double[], int, int)

public FrameGeometry(string frameOfReferenceUid, double[] imagePatientPosition, double[] imagePatientOrientation, double[] pixelSpacing, int width, int height)

Parameters

frameOfReferenceUid string
imagePatientPosition double[]
imagePatientOrientation double[]
pixelSpacing double[]
width int
height int

Properties

DirectionColumn

public Vector3D DirectionColumn { get; }

Property Value

Vector3D

DirectionNormal

public Vector3D DirectionNormal { get; }

Property Value

Vector3D

DirectionRow

public Vector3D DirectionRow { get; }

Property Value

Vector3D

FrameOfReferenceUid

public string FrameOfReferenceUid { get; }

Property Value

string

FrameSize

public Point2 FrameSize { get; }

Property Value

Point2

GeometryType

public FrameGeometryType GeometryType { get; }

Property Value

FrameGeometryType

HasGeometryData

public bool HasGeometryData { get; }

Property Value

bool

Orientation

public FrameOrientation Orientation { get; }

Property Value

FrameOrientation

PixelSpacingBetweenColumns

public double PixelSpacingBetweenColumns { get; }

Property Value

double

PixelSpacingBetweenRows

public double PixelSpacingBetweenRows { get; }

Property Value

double

PointBottomLeft

public Point3D PointBottomLeft { get; }

Property Value

Point3D

PointBottomRight

public Point3D PointBottomRight { get; }

Property Value

Point3D

PointTopLeft

public Point3D PointTopLeft { get; }

Property Value

Point3D

PointTopRight

public Point3D PointTopRight { get; }

Property Value

Point3D

Methods

TransformImagePointToPatient(Point2)

public Point3D TransformImagePointToPatient(Point2 imagePoint)

Parameters

imagePoint Point2

Returns

Point3D

TransformPatientPointToImage(Point3D)

public Point2D TransformPatientPointToImage(Point3D patientPoint)

Parameters

patientPoint Point3D

Returns

Point2D