[−][src]Function arrayfire::dilate
pub fn dilate<T>(input: &Array<T>, mask: &Array<T>) -> Array<T> where
T: HasAfEnum + ImageFilterType,
Dilate an Image
The dilation function takes two pieces of data as inputs. The first is the input image to be morphed, and the second is the mask indicating the neighborhood around each pixel to match.
In dilation, for each pixel, the mask is centered at the pixel. If the center pixel of the mask matches the corresponding pixel on the image, then the mask is accepted. If the center pixels do not matches, then the mask is ignored and no changes are made.
For further reference, see here.
Parameters
input
is the input imagemask
is the morphological operation mask
Return Values
Dilated Image(Array)