Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.18 KB

File metadata and controls

43 lines (29 loc) · 2.18 KB
sidebar_position 10

import ErodeDemo from './demos/erode.mask.demo.tsx';

Erosion

Reduces the size of foreground objects by iteratively shrinking their boundaries.

🖼️ Image options and parameters of erode method
🎭 Mask options and parameters of erode method

Erosion is a fundamental morphological operation in image processing that is used to reduce the size of foreground objects (regions of interest) within an image while preserving their shape and structure. It works by moving a structuring element over the image and replacing each pixel with the minimum value of the pixels covered by the structuring element. Erosion is particularly useful for tasks like noise reduction, edge detection, and object separation.

Kinds of images compatible with algorithm

Image property What it means Possible values
bitDepth number of bits per channel [1,8,16]
components number of components [1]
alpha is alpha channel allowed false

Parameters and default values

:::info Parameters and options for Images and Masks are the same. :::

  • options

Options

Property Required Default value
iterations no 1
kernel no [[1, 1, 1],[1, 1, 1],[1, 1, 1]]

:::info The method is also available for Masks. :::