Show / Hide Table of Contents
View Source

Class SliceContourMeta

Represents a closed contour on a given slice (can be multiple for the same stucture on the same slice)

Inheritance
System.Object
SliceContourMeta
Namespace:EvilDICOM.CV.RT.Meta
Assembly:EvilDICOM.CV.dll
Syntax
public class SliceContourMeta : object

Properties

View Source

Children

A container for contours within this contour

Declaration
public List<SliceContourMeta> Children { get; set; }
Property Value
Type Description
List<SliceContourMeta>
View Source

ContourPoints

Declaration
public List<OpenCvSharp.Point2f> ContourPoints { get; }
Property Value
Type Description
List<OpenCvSharp.Point2f>
View Source

Z

Declaration
public float Z { get; }
Property Value
Type Description
System.Single

Methods

View Source

AddPoint(OpenCvSharp.Point3f)

Declaration
public void AddPoint(OpenCvSharp.Point3f pt)
Parameters
Type Name Description
OpenCvSharp.Point3f pt
View Source

CalculateArea()

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

CompletelyContains(SliceContourMeta)

Declaration
public bool CompletelyContains(SliceContourMeta smaller)
Parameters
Type Name Description
SliceContourMeta smaller
Returns
Type Description
System.Boolean
View Source

DrawOnSlice(Mat, Mat, Double)

Declaration
public Mat DrawOnSlice(Mat txMatrix, Mat slice, double scale = null)
Parameters
Type Name Description
Mat txMatrix
Mat slice
System.Double scale
Returns
Type Description
Mat
View Source

MaskImage(Mat, Vec2f[], Byte)

Masks an image of the same voxel count as the input doseGrid. Voxels inside the contour are filled with the specified color. Intent is white (0x255) on inside and outside areas/holes are left black (0x00)

Declaration
public void MaskImage(Mat mask, Vec2f[] doseGridPts, byte color = null)
Parameters
Type Name Description
Mat mask

the mask to fill or modify (recursively)

Vec2f[] doseGridPts

the 2d (x,y) patient coordinates of the dose matrix slices

System.Byte color

the color to fill the contour

View Source

MaskImageFast(Mat, Mat, Byte, Double)

Masks an image of the same voxel count as the input doseGrid. Voxels inside the contour are filled with the specified color. Intent is white (0x255) on inside and outside areas/holes are left black (0x00)

Declaration
public void MaskImageFast(Mat mask, Mat txMatrix, byte color = null, double scale = null)
Parameters
Type Name Description
Mat mask

the mask to fill or modify (recursively)

Mat txMatrix

the patient transform matrix from the imagematrix/dosematrix

System.Byte color

the color to fill the contour

System.Double scale

the scale of the image (in case the image has been resampled)

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX