Class SliceContourMeta
Represents a closed contour on a given slice (can be multiple for the same stucture on the same slice)
Inheritance
Namespace:EvilDICOM.CV.RT.Meta
Assembly:EvilDICOM.CV.dll
Syntax
public class SliceContourMeta : object
Properties
View SourceChildren
A container for contours within this contour
Declaration
public List<SliceContourMeta> Children { get; set; }
Property Value
| Type | Description |
|---|---|
| List<SliceContourMeta> |
ContourPoints
Declaration
public List<OpenCvSharp.Point2f> ContourPoints { get; }
Property Value
| Type | Description |
|---|---|
| List<OpenCvSharp.Point2f> |
Z
Declaration
public float Z { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
View SourceAddPoint(OpenCvSharp.Point3f)
Declaration
public void AddPoint(OpenCvSharp.Point3f pt)
Parameters
| Type | Name | Description |
|---|---|---|
| OpenCvSharp.Point3f | pt |
CalculateArea()
Declaration
public double CalculateArea()
Returns
| Type | Description |
|---|---|
| System.Double |
CompletelyContains(SliceContourMeta)
Declaration
public bool CompletelyContains(SliceContourMeta smaller)
Parameters
| Type | Name | Description |
|---|---|---|
| SliceContourMeta | smaller |
Returns
| Type | Description |
|---|---|
| System.Boolean |
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 |
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 |
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) |