A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.arrayfire.org/docs/group__image__func__erode.htm below:

ArrayFire: erode

Erosion(morphological operator) for images. More...

Erosion(morphological operator) for images.

The erosion function is a morphological transformation on an image that requires two inputs. The first is the image to be morphed, and the second is the mask indicating neighborhood that must be white in order to preserve each pixel.

In erode, for each pixel, the mask is centered at the pixel. If each pixel of the mask matches the corresponding pixel on the image, then no change is made. If there is at least one mismatch, then pixels are changed to the background color (black).

For further reference, see: Erosion (morphology)

Sample input and output are shown below:

Input Image

Mask

Intermediate Result

Output Image

◆ af_erode()

C Interface for image erosion (min filter)

Parameters
[out] out array is the eroded image [in] in array is the input image [in] mask is the neighborhood window
Returns
AF_SUCCESS if the eroded successfully, otherwise an appropriate error code is returned.
Note
if mask is all ones, this function behaves like min filter
◆ erode()

C++ Interface for image erosion (min filter)

Parameters
[in] in array is the input image [in] mask is the neighborhood window
Returns
the eroded image
Note
This function can be used as min filter by using a mask of all ones

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4