View Source
Class ImageContours
Class that holds image contours on a given 3D image
Inheritance
System.Object
ImageContours
Namespace:EvilDICOM.CV.Image
Assembly:EvilDICOM.CV.dll
Syntax
public class ImageContours : object
Properties
View Source
MaxX
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
MaxY
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
MaxZ
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
MinX
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
MinY
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
View Source
MinZ
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
View Source
BuildFromImage(StructureMeta, Matrix)
Creates a rough approximation of the structure inside a given 3d matrix. Useful for calculating bounds
Declaration
public static ImageContours BuildFromImage(StructureMeta sm, Matrix im)
Parameters
Returns
View Source
DrawContourOnSlice(Mat, Int32, StructureLook)
Draws the contour in patient coordinates on the slice voxels (which are voxel coordinates)
Declaration
public Mat DrawContourOnSlice(Mat imSlice, int z, StructureLook look)
Parameters
| Type |
Name |
Description |
| Mat |
imSlice |
|
| System.Int32 |
z |
the z slice to draw the structure
|
| StructureLook |
look |
|
Returns
View Source
DrawContourOnSlice(Int32, StructureLook)
Draws the contour in patient coordinates on the slice voxels (which are voxel coordinates)
Declaration
public Mat DrawContourOnSlice(int z, StructureLook look)
Parameters
| Type |
Name |
Description |
| System.Int32 |
z |
the z slice to draw the structure
|
| StructureLook |
look |
|
Returns
View Source
GetContoursOnSliceX(Int32)
Declaration
public OpenCvSharp.Point[][] GetContoursOnSliceX(int xIdx)
Parameters
| Type |
Name |
Description |
| System.Int32 |
xIdx |
|
Returns
| Type |
Description |
| OpenCvSharp.Point[][] |
|
View Source
GetContoursOnSliceY(Int32)
Declaration
public OpenCvSharp.Point[][] GetContoursOnSliceY(int yIdx)
Parameters
| Type |
Name |
Description |
| System.Int32 |
yIdx |
|
Returns
| Type |
Description |
| OpenCvSharp.Point[][] |
|
View Source
GetContoursOnSliceZ(Int32)
Declaration
public OpenCvSharp.Point[][] GetContoursOnSliceZ(int zIdx)
Parameters
| Type |
Name |
Description |
| System.Int32 |
zIdx |
|
Returns
| Type |
Description |
| OpenCvSharp.Point[][] |
|