Module imgproc_rs::morphology[][src]

Functions

close

Applies a dilation followed by an erosion

dilate

Dilates a binary image (grayscale image with pixel values of 0 or 255) using a kernel of size (2 * radius + 1) x (2 * radius + 1)

erode

Erodes a binary image (grayscale image with pixel values of 0 or 255) using a kernel of size (2 * radius + 1) x (2 * radius + 1)

gradient

Returns the difference between dilation and erosion of the image

majority

Sets output pixel to the majority-valued pixel in the input image under a kernel of size (2 * radius + 1) x (2 * radius + 1)

open

Applies an erosion followed by a dilation