It consists in max and min filters on the input image, changing the structural element (filter's mask).
Some applications of mathematical morphology are:
- Filtering of binary images;
- Objects resize;
- Enhancement of specific areas.
The GIMP (GNU Image Manipulation Program) does these mathematical morphology operations, as showed.
Before all, I want explain the structural element. It's a sub-set from input image and its form may change depeding on the application.
For example, given a image F(x,y) and a structural element which is a squad with 3 columns and 3 rows. The cited sub-set is Struc{F(x,y)} = {F(x-1,y-1), F(x-1,y), F(x-1,y+1), F(x,y-1), F(x,y), F(x,y+1), F(x+1,y-1), F(x+1,y), F(x+1,y+1)}. The structural element defines the neighborhood for each point (x,y) on the image.
The most common forms are:
- Squad;
- Circle;
- Cross;
- Dash (diagonal, vertical or horizontal);
- Diamond.
Nenhum comentário:
Postar um comentário