Start » Filter Reference » OpenCV » Image Filtering » cvErode
Module: | OpenCV |
---|
Erodes an image by using a specific structuring element.
Name | Type | Range | Description | |
---|---|---|---|---|
inSrc | Image | Source image. | ||
inElement | Region* | Structuring element used for erosion. NIL value means that a 3 x 3 rectangular structuring element is used. | ||
inAnchor | Location* | Position of the anchor within the element. The NIL value means that the anchor is at the element center. | ||
inIterations | Integer | 0 - | Number of times erosion is applied. | |
inBorderType | CvBorderType | Pixel extrapolation method. | ||
inBorderValue | Pixel* | Border value in case of a constant border. | ||
outDst | Image | Output image. |
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input image must have pixel type different from Int8 and Int32 in cvErode. |
DomainError | Input image must not be empty in cvErode. |
Complexity Level
This filter is available on Basic Complexity Level.