Image Processing
L a b N o 4 \mathbf{Lab\space No4} Lab No4
S t u d e n t I n f o \mathbb {Student\space Info} Student Info
HDU ID: 19321123
ITMO ID: 293647
Content
文章目录
-
-
- P u r p o s e \mathbb{Purpose} Purpose
- T h e o r y \mathbb{Theory} Theory
-
- B a s i c m o r p h o l o g i c a l o p e r a t i o n s \mathbb{Basic\space morphological\space operations} Basic morphological operations
- S e p a r a t i n g o b j e c t s \mathbb{Separating\space objects} Separating objects
- W a t e r s h e d s e g m e n t a t i o n \mathbb{Watershed\space segmentation} Watershed segmentation
- A s s i g n m e n t p r o g r e s s \mathbb{Assignment\space progress} Assignment progress
-
- B a s i c o p e r a t i o n s \mathbb{Basic\space operations} Basic operations
- S e p a r a t i n g o b j e c t s \mathbb{Separating\space objects} Separating objects
- W a t e r s h e d s e g m e n t a t i o n \mathbb{Watershed\space segmentation} Watershed segmentation
- C o n c l u s i o n \mathbb{Conclusion} Conclusion
- A n s w e r s \mathbb{Answers} Answers
-
P u r p o s e \mathbb{Purpose} Purpose
- Getting know about basic digital images morphological analysis principles
- Using basic digital images operations
- Combine them to implement object splitting algorithm
T h e o r y \mathbb{Theory} Theory
B a s i c m o r p h o l o g i c a l o p e r a t i o n s \mathbb{Basic\space morphological\space operations} Basic morphological operations
-
Dilation
A ⊕ B A\oplus B A⊕B, where A is a binary image and B is an structural element. Its calculation formula can be written as d s t ( x , y ) = m a x ( s r c ( x + x ′ , y + y ′ ) ) , ( x ′ , y ′ ) : e l e m e n t ( x ′ , y ′ ) ≠ 0 dst(x,y) = max (src(x+x', y+y')), (x',y'):element(x',y') \neq 0 dst(x,y)=max(src(x+x′,y+y′)),(x′,y′):element(x′,y′)=0
-
Erosion
The simliar operation as dilation, but the m a x max max function in formula changes to m i n min min function. Thus, it’s A ⊖ B A\ominus B A⊖B, and the calculation formula is d s t ( x , y ) = m a x ( s r c ( x + x ′ , y + y ′ ) ) , ( x ′ , y ′ ) : e l e m e n t ( x ′ , y ′ ) ≠ 0 dst(x,y) = max (src(x+x', y+y')), (x',y'):element(x',y') \neq 0 dst(x,y)=max(src(x+x′,y+y′)),(x′,y′)