| Cv2GetStructuringElement Method (MorphShapes, Size) |
Returns a structuring element of the specified size and shape for morphological operations.
The function constructs and returns the structuring element that can be further passed to erode,
dilate or morphologyEx.But you can also construct an arbitrary binary mask yourself and use it as the structuring element.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Mat GetStructuringElement(
MorphShapes shape,
Size ksize
)
Public Shared Function GetStructuringElement (
shape As MorphShapes,
ksize As Size
) As Mat
public:
static Mat^ GetStructuringElement(
MorphShapes shape,
Size ksize
)
static member GetStructuringElement :
shape : MorphShapes *
ksize : Size -> Mat
Parameters
- shape
- Type: OpenCvSharpMorphShapes
Element shape that could be one of MorphShapes - ksize
- Type: OpenCvSharpSize
Size of the structuring element.
Return Value
Type:
Mat[Missing <returns> documentation for "M:OpenCvSharp.Cv2.GetStructuringElement(OpenCvSharp.MorphShapes,OpenCvSharp.Size)"]
See Also