| MatMorphologyEx Method |
Performs advanced morphological transformations
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat MorphologyEx(
MorphTypes op,
InputArray element,
Nullable<Point> anchor = null,
int iterations = 1,
BorderTypes borderType = BorderTypes.Constant,
Nullable<Scalar> borderValue = null
)
Public Function MorphologyEx (
op As MorphTypes,
element As InputArray,
Optional anchor As Nullable(Of Point) = Nothing,
Optional iterations As Integer = 1,
Optional borderType As BorderTypes = BorderTypes.Constant,
Optional borderValue As Nullable(Of Scalar) = Nothing
) As Mat
public:
Mat^ MorphologyEx(
MorphTypes op,
InputArray^ element,
Nullable<Point> anchor = nullptr,
int iterations = 1,
BorderTypes borderType = BorderTypes::Constant,
Nullable<Scalar> borderValue = nullptr
)
member MorphologyEx :
op : MorphTypes *
element : InputArray *
?anchor : Nullable<Point> *
?iterations : int *
?borderType : BorderTypes *
?borderValue : Nullable<Scalar>
(* Defaults:
let _anchor = defaultArg anchor null
let _iterations = defaultArg iterations 1
let _borderType = defaultArg borderType BorderTypes.Constant
let _borderValue = defaultArg borderValue null
*)
-> Mat
Parameters
- op
- Type: OpenCvSharpMorphTypes
Type of morphological operation - element
- Type: OpenCvSharpInputArray
Structuring element - anchor (Optional)
- Type: SystemNullablePoint
Position of the anchor within the element. The default value (-1, -1) means that the anchor is at the element center - iterations (Optional)
- Type: SystemInt32
Number of times erosion and dilation are applied. [By default this is 1] - borderType (Optional)
- Type: OpenCvSharpBorderTypes
The pixel extrapolation method. [By default this is BorderTypes.Constant] - borderValue (Optional)
- Type: SystemNullableScalar
The border value in case of a constant border. The default value has a special meaning. [By default this is CvCpp.MorphologyDefaultBorderValue()]
Return Value
Type:
MatDestination image. It will have the same size and the same type as src
See Also