Class ContourHelper
Inheritance
System.Object
ContourHelper
Namespace:EvilDICOM.CV.Helpers
Assembly:EvilDICOM.CV.dll
Syntax
public static class ContourHelper : object
Methods
View SourceGetMaskAtZ(IEnumerable<SliceContourMeta>, Single, Mat, Mat, Double)
Gets the contours on a slice z. Interpolates if contours don't exist
Declaration
public static Mat GetMaskAtZ(this IEnumerable<SliceContourMeta> contours, float z, Mat zSlice, Mat imageToPatientTx, double scale)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<SliceContourMeta> | contours | |
| System.Single | z | z position of contours |
| Mat | zSlice | |
| Mat | imageToPatientTx | |
| System.Double | scale |
Returns
| Type | Description |
|---|---|
| Mat |
OrganizeIntoChildren(SliceContourMeta, IEnumerable<SliceContourMeta>)
Recursive method that takes the largest contour and an array of smaller contours to place smaller contours which are inside the largest contour into the child list for area calculations
Declaration
public static void OrganizeIntoChildren(SliceContourMeta largerContour, IEnumerable<SliceContourMeta> smallerContours)
Parameters
| Type | Name | Description |
|---|---|---|
| SliceContourMeta | largerContour | the large contour possibly containing smaller contours |
| IEnumerable<SliceContourMeta> | smallerContours | the list of smaller contours |