Dilates an image by using a specific structuring element.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static void Dilate(
InputArray src,
OutputArray dst,
InputArray element,
Nullable<Point> anchor = null,
int iterations = 1,
BorderTypes borderType = BorderTypes.Constant,
Nullable<Scalar> borderValue = null
)
Public Shared Sub Dilate (
src As InputArray,
dst As OutputArray,
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
)
public:
static void Dilate(
InputArray^ src,
OutputArray^ dst,
InputArray^ element,
Nullable<Point> anchor = nullptr,
int iterations = 1,
BorderTypes borderType = BorderTypes::Constant,
Nullable<Scalar> borderValue = nullptr
)
static member Dilate :
src : InputArray *
dst : OutputArray *
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
*)
-> unit
OpenCvSharp.Cv2.Dilate = function(src, dst, element, anchor, iterations, borderType, borderValue);
Parameters
- src
- Type: OpenCvSharpInputArray
The source image - dst
- Type: OpenCvSharpOutputArray
The destination image. It will have the same size and the same type as src - element
- Type: OpenCvSharpInputArray
The structuring element used for dilation. If element=new Mat() , a 3x3 rectangular structuring element is used - 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
The number of times dilation is applied. [By default this is 1] - borderType (Optional)
- Type: OpenCvSharpBorderTypes
The pixel extrapolation method. [By default this is BorderType.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()]
See Also