Show / Hide Table of Contents
View Source

Class Matrix

Inheritance
System.Object
Matrix
Namespace:EvilDICOM.CV.Image
Assembly:EvilDICOM.CV.dll
Syntax
public class Matrix : IDisposable

Properties

View Source

BytesAllocated

Declaration
public int BytesAllocated { get; set; }
Property Value
Type Description
System.Int32
View Source

DimensionX

Declaration
public int DimensionX { get; set; }
Property Value
Type Description
System.Int32
View Source

DimensionY

Declaration
public int DimensionY { get; set; }
Property Value
Type Description
System.Int32
View Source

DimensionZ

Declaration
public int DimensionZ { get; set; }
Property Value
Type Description
System.Int32
View Source

ImageOrientation

Declaration
public (Vector3 xDir, Vector3 yDir, Vector3 zDir) ImageOrientation { get; set; }
Property Value
Type Description
System.ValueTuple<Vector3, Vector3, Vector3>
View Source

Origin

Declaration
public Vector3 Origin { get; set; }
Property Value
Type Description
Vector3
View Source

PatientTransformMatrix

Declaration
public Mat PatientTransformMatrix { get; }
Property Value
Type Description
Mat
View Source

XMax

Declaration
public double XMax { get; }
Property Value
Type Description
System.Double
View Source

XMin

Declaration
public double XMin { get; }
Property Value
Type Description
System.Double
View Source

XRes

Declaration
public double XRes { get; set; }
Property Value
Type Description
System.Double
View Source

YMax

Declaration
public double YMax { get; }
Property Value
Type Description
System.Double
View Source

YMin

Declaration
public double YMin { get; }
Property Value
Type Description
System.Double
View Source

YRes

Declaration
public double YRes { get; set; }
Property Value
Type Description
System.Double
View Source

ZMax

Declaration
public double ZMax { get; }
Property Value
Type Description
System.Double
View Source

ZMin

Declaration
public double ZMin { get; }
Property Value
Type Description
System.Double
View Source

ZRes

Declaration
public double ZRes { get; set; }
Property Value
Type Description
System.Double

Methods

View Source

CalcHistogram(Int32)

Declaration
public MatrixHistogram CalcHistogram(int nBins)
Parameters
Type Name Description
System.Int32 nBins
Returns
Type Description
MatrixHistogram
View Source

CalculatePatientTransformMatrix()

Declaration
public void CalculatePatientTransformMatrix()
View Source

CalculateZeroBoundaryVolumeCC()

Declaration
public double CalculateZeroBoundaryVolumeCC()
Returns
Type Description
System.Double
View Source

ConvertIsodoseLevelToMesh(Double)

Declaration
public Mesh ConvertIsodoseLevelToMesh(double isodoseLevel)
Parameters
Type Name Description
System.Double isodoseLevel
Returns
Type Description
Mesh
View Source

CropMatrixToStructure(StructureMeta, Double)

Declaration
public void CropMatrixToStructure(StructureMeta contour, double marginMM)
Parameters
Type Name Description
StructureMeta contour
System.Double marginMM
View Source

Dispose()

Declaration
public void Dispose()
View Source

EmptyClone()

Declaration
public Matrix EmptyClone()
Returns
Type Description
Matrix
View Source

ExcludeOutsideStructure(StructureMeta)

Declaration
public Matrix ExcludeOutsideStructure(StructureMeta str)
Parameters
Type Name Description
StructureMeta str
Returns
Type Description
Matrix
View Source

GetImageGridPointsPatientCoordinates()

Returns the 2D image voxel coordinates in the patient coordinate system. Useful for deciding if a pixel is inside of a contour.

Declaration
public Point2f[] GetImageGridPointsPatientCoordinates()
Returns
Type Description
Point2f[]

2D vector array corresponding to concatenated voxel rows

View Source

GetPointValue(Double, Double, Double)

Declaration
public float GetPointValue(double x, double y, double z)
Parameters
Type Name Description
System.Double x
System.Double y
System.Double z
Returns
Type Description
System.Single
View Source

GetPointValue(Vector3)

Retrieves the point value in the matrix. Inefficient but useful for single point queries

Declaration
public float GetPointValue(Vector3 pt)
Parameters
Type Name Description
Vector3 pt
Returns
Type Description
System.Single
View Source

GetValueByIndex(Int32, Int32, Int32)

Declaration
public float GetValueByIndex(int xIndex, int yIndex, int zIndex)
Parameters
Type Name Description
System.Int32 xIndex
System.Int32 yIndex
System.Int32 zIndex
Returns
Type Description
System.Single
View Source

GetXPlane(Double)

Declaration
public Mat GetXPlane(double xPositionMM)
Parameters
Type Name Description
System.Double xPositionMM
Returns
Type Description
Mat
View Source

GetXPlaneBySlice(Int32)

Declaration
public Mat GetXPlaneBySlice(int x)
Parameters
Type Name Description
System.Int32 x
Returns
Type Description
Mat
View Source

GetYPlane(Double)

Declaration
public Mat GetYPlane(double yPositionMM)
Parameters
Type Name Description
System.Double yPositionMM
Returns
Type Description
Mat
View Source

GetYPlaneBySlice(Int32)

Declaration
public Mat GetYPlaneBySlice(int y)
Parameters
Type Name Description
System.Int32 y
Returns
Type Description
Mat
View Source

GetZPlane(Double)

Declaration
public Mat GetZPlane(double z)
Parameters
Type Name Description
System.Double z
Returns
Type Description
Mat
View Source

GetZPlaneBySlice(Int32)

Declaration
public Mat GetZPlaneBySlice(int z)
Parameters
Type Name Description
System.Int32 z
Returns
Type Description
Mat
View Source

ImageToPatientTx(Vector3)

Declaration
public Vector3 ImageToPatientTx(Vector3 pos)
Parameters
Type Name Description
Vector3 pos
Returns
Type Description
Vector3
View Source

IsInBounds(Vector3)

Declaration
public bool IsInBounds(Vector3 pt)
Parameters
Type Name Description
Vector3 pt
Returns
Type Description
System.Boolean
View Source

MaskToStructure(StructureMeta)

Declaration
public Matrix MaskToStructure(StructureMeta str)
Parameters
Type Name Description
StructureMeta str
Returns
Type Description
Matrix
View Source

MinMaxVal()

Declaration
public (float Max, float Min) MinMaxVal()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
View Source

PadZ(Int32)

Declaration
public Matrix PadZ(int zPad)
Parameters
Type Name Description
System.Int32 zPad
Returns
Type Description
Matrix
View Source

Resample(Double, Double, Double)

Declaration
public void Resample(double xRes, double yRes, double zRes)
Parameters
Type Name Description
System.Double xRes
System.Double yRes
System.Double zRes
View Source

ResampleMatrixToStructure(StructureMeta)

Declaration
public Matrix ResampleMatrixToStructure(StructureMeta contour)
Parameters
Type Name Description
StructureMeta contour
Returns
Type Description
Matrix
View Source

SetZPlaneBySlice(Mat, Int32)

Declaration
public void SetZPlaneBySlice(Mat insert, int z)
Parameters
Type Name Description
Mat insert
System.Int32 z
View Source

VolumeCC()

Declaration
public double VolumeCC()
Returns
Type Description
System.Double

Extension Methods

MatrixExtensions.Find2DIsodoseLines(IsodoseLevel[])
MatrixExtensions.FindStructureContour(Double)
MatrixExtensions.ShowAllSlices()
MatrixExtensions.ShowSDFMatrix()
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX