Title: Digital Image Processing
1Digital Image Processing
- ????? ???????
- ???
- Simplified approach to Image Processing
- (classical modern techniques in C)
2DIP (Digital Image Processing)
? ?
Digtal ???? ???? ??? ???? ???? ??? ??, ????, ???
??? ?? ??
? ? ?
(1) ?? ??(Image Manipulation) (2) ?? ??(Image
Analysis) (3) ?? ??(Image Recognition) (4) ??
??(Image Communication)
3DIP (Digital Image Processing)
?? ??
- ??? ??
- ??? ??
- ???? ??
- ?? ???(Factory Automation)
- ?? ?? ?? ???(Medical Diagnostic Imaging)
- ???/?? ??
4DIP (Digital Image Processing)
???????? ??
5DIP (Digital Image Processing)
??? ??? ??
(1) ??? ??? (2) ????? ???? (3) ???, ????
???? (4) ????? ??? ???? (5) ??? ?? ? ???? ????
6DIP (Digital Image Processing)
??? ????
7DIP (Digital Image Processing)
??? ???(Sample)
8DIP (Digital Image Processing)
??? ??? ?? ??? ??
9DIP (Digital Image Processing)
???(Quantization)
10DIP (Digital Image Processing) - Color Space
?????? ???? ??? ??
(1)???? (2)??? ?? (3)????
- ?? ??
- ??? ??? ? ??(?, ?)?? ? ??
- ??, ?? ??, ?? ?? ??? ??
- ?? ??? ???? ????? ???? ??? ?? ??? ?? ????? ?? ???
??
11DIP (Digital Image Processing) - Color Space
(2) ??? ??
- - ???? ?? ??? ???? ??(?? ??)
- 0 f(x, y) 2n-1 ??? ??? ?? ? ??
- ?? ??? ????? ??? ??? ??? ??
(3) ?? ??
- ???? ?? - 19?? ??? ???? ?? ??? ??(R),
??(G), ??(B)? ???? ??? ? ??? ?? - ?? ???
??? ?? ??? ??? ?? ??? ?? - ?? ??? ??? ?? -gt ??
?? ?? sqrt ( red2 green2 blue2) /
sqrt(3)
12DIP (Digital Image Processing) - Color Space
?? ???? Gray ???? ??
13DIP (Digital Image Processing) - Color Space
??? ??? ??? ?
????? ??? ?
???? ??? ???? ??? ??? ???
???? ??? ?
????? ??? ? ?? ??? ?
14DIP (Digital Image Processing) - Color
Space(Image file)
??? ??? ?? ?? ?? 1
BMP ?? ??
- - MS ?? ??? ?? ???? ??? ????? ???? ??
- - ??? ? ?? ??? ???? ??? ???? ?? ???? ??
- - ???? ??? ??? ??
- - ????? ????? ???? ?? ????? ??? ??? ?
PCX ?? ??
- - ZSoft? ????? PC paintbrush ????? ?? ?? ??
- - ??? ??? ?? ??
- - ??? 128 ???? ??
15DIP (Digital Image Processing) - Color
Space(Image file)
??? ??? ?? ?? ?? 2
GIF (Graphics Interchange Format) ?? ??
- ??? ?? ????? ?????? 1987?? ???? ?? ? ??? ??
?? ??? ??? ?? - LZW(Lempel Ziv Welch) ?? ???
???? ???? ?? ????? ??
JPEG (Joint Photographic Experts Group) ?? ??
- ISO/IEC? CCITT? ?? ??? ? ?? ?? ??? ???? ???
???? ??? ??? ??? ???? ?? ??? ?? - ?? ??? DCT ??
?? ??? ???? ???? ?? ?? ??? ??? ??? ???? ? ??
???? ??? ??? ??? ????? ?? ???? ????? ??
16DIP (Digital Image Processing) - Color
Space(Image file)
??? ??? ?? ?? ?? 3
TIFF (Tagged Image File Format) ?? ??
- TIFF? ??? ??? ???? ??? ????? ??? ?? ?? ??
- ?? ???? ?? ?? ??? ???? ?????? ???
(descriptor) - ?? ??? ????? ??? ???? ??? ???
???? ?? ?? ??? ??? ?? - 232 ??? ????? ????
????? ??? ????? ????? ????? - ?? ??? ?? ??
??? ?? ?? ?? ??? ??? ???? ????? ???? ?
17DIP (Digital Image Processing) - Color Space
Color
???? ????
RGB
CMY
YCbCr
YIQ
HSI
18DIP (Digital Image Processing) - Color Space(RGB)
RGB
- Color Camera/Monitor ?? ??
- ??(Red),
- ??(Green)
- ??(Blue) ??
Brighteness 0.2999R 0.587G 0.114B
19DIP (Digital Image Processing) - Color Space(RGB)
??? ????? RGB ?? ??
20DIP (Digital Image Processing) - Color Space(CMY)
CMY
RGB?? ????? ?? ????
?? ???? ??????? ?? CMYK ?? CMY? K(???? ??
??) ?? ??
C 1.0 R M 1.0 - G Y 1.0 - B
21DIP (Digital Image Processing) - Color Space(CMY)
RGB ??? CMY ???? ??
22DIP (Digital Image Processing) - Color Space(HIS)
Color
RGB ??? HSI ???? ??
23DIP (Digital Image Processing) - Color Space(HIS)
HSI??
24DIP (Digital Image Processing) - Color Space(YUV)
YUV
- Color TV? ???? ?? ??
- (PAL/SECAM)
Y 0.299R 0.587G 0.114B U -0.147R -0.289G
0.437B V 0.615R - 0.515G - 0.100B
?? ??
R 1.000Y 0.000U 1.403V G 1.000Y - 0.344U
- 0.714V B 1.000Y 1.773U 0.000V
? ?? ??
25DIP (Digital Image Processing) - Color Space(YUV)
RGB ??? YUV ???? ??
26DIP (Digital Image Processing) - Color Space(YIQ)
YIQ
- Color TV? ???? ?? ??
- (PAL/SECAM)
Y 0.299R 0.587G 0.114B I 0.596R - 0.274G
- 0.322B Q 0.211R - 0.523G - 0.312B
?? ??
R - 1.129Y 3.306I - 3.000Q G 1.607Y -
0.934I 0.386Q B 3.458Y - 3.817I 5.881Q
? ?? ??
27DIP (Digital Image Processing) - Color Space(YIQ)
RGB ??? YIQ ???? ??
28DIP (Digital Image Processing) - Color
Space(YCbCr)
YCbCr
?? ??(MPEG)?? ???? ?? ??
Y 77R/256 150G/256 29B/256 Cb 131R/256 -
110G/256 - 21B/256 128 Cr 131R/256 -
44R/256 - 87G/256 128
?? ??
29DIP (Digital Image Processing) - Color
Space(YCbCr)
RGB ??? YCbCr ???? ??
30DIP (Digital Image Processing)
??
Point Processing
Area Processing
Topological Processing
Frame Processing
31DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
Point Processing
??(pixel)? ?? ?? ?? ???? ??? ???? ???? ??? ??
??? ??? ?? ? ??? ??
??? ??
???? 0 ?? 255 ??? ??? ?? (0 ???, 255 ??)
24bit? ?? (Red, Blue, Green Channel ? ??? 8bit?
??)
?? ??
32DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
Gray ???? ??? ??
Clamping
??? ??? ?? 256??? ??? ???, ??? ????? ??? ?? ???
?? ???? ?? ???? 255? ???? ??? 255?, 0??? ?? 0??
???? ?
33DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
????? (Histogram)
??? ???? ??? ?? ??? ??? ??? ?
? ?
34DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
? ?
- ? ??? ????? ????? ??? ??? ??? ??
- (??? ??)? ????
- (2) ?? ??? ?? ?????? ?? ? ??
- (3) ? ??? ???? ?????? ??? ?? ??????
- ?? ? ??
- (4) ?????? ????? ???? ?? ?????? ????
- ??? ? ??
? ?
??? ???? ??
??? ???? ? ??? ??? ????? ???? ?? ??? ??? ??
????? ??? ??? ??? ??? ?????? ?? ???? ??
????? ???? ??
35DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
? ?
??? ??
36DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
????? ???(histogram equalization)
?? ???? ??? ???? ?????? ??? ??? ??? ?? ???? ??
??? ??? ?? ?? ???? ??? ??
? ?
????? ??
?????? ??? ? ? ??
?? ??? ???? ?? ?? ??
37DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
????? ???(histogram equalization) ?
38DIP (Digital Image Processing) - Point
Processing (????? ? ??, ?????)
?????? ??? ? ????? ??? ??
39DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
???? ????
- ???? ??? ??? ??? ??
- ??(??) ?? ???
- ?? ??? ????? ?? ??? ??? ??
- Contrast ?? ??? ? ??? ??? ????? ????
- ??? ???? ????? ??
- (1) Sliding ???? ?? ?? ???? ???? ?? ?
- (2) ????(stretching) ?? ???? ?????
???? - ???
??? ?? ??? ??? -
????? ?????? ?? - ???
?
40DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
???? ???? ????
?? ???? ????
??
??? ???? ???? ?????? ?? ??? ??
??
old pixel - low new pixel
------------ 255 high - low
?? ???? ????
41DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
???? ???? ????
??? ?? (ends-in search)
??
?? ??? ??? ???? ?????? ?? ??? ???? ??? ??? ??
0 (? x lt low) output 255
(x-low)/(high - low) (? low lt x lt high)
255 (? high lt x)
??
??-? ??
42DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
????
????
?? ??? ??? ???? ?? ???? ??? ????? ??? ?
y x
???
y 255 x
???
???? ???
43DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
?? ??
? ?
???? ??? ?? ??? CRT? ???? ???? ???.(?CRT? ??? ??)
?? ???? ??
44DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
?????? / ???? ?? ??
? ?
?? ?? ???, ???? ??
?????? / ???? ??
45DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
??????
? ?
??? ?? ? ?? ?? ??? ??
?????? ??? ??
46DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
???? ??? ??
? ?
???? ??? ??? ?? ? ???
???? ??? ??? ??
47DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
?? ???
? ?
??? ??? ?? ??? 0?? ???
?? ???? ??? ??? ??
48DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
??? ???
? ?
?? ?? ???? ?? ?? ??? ??
??? ???? ??? ??? ??
49DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
?? ?? ??
? ?
?? ??? ??? ???? ????? ?? ??
?? ?? ??? ??
50DIP (Digital Image Processing) - Point
Processing (????(Contrast),????)
????? ?? / ???? ??
? ?
??? ????? ?? ??
????? ?? / ???? ??? ??
51DIP (Digital Image Processing) - Area Processing
1(??? ?? ??)
frequency ??? ??
52DIP (Digital Image Processing) - Area Processing
1(Convolution)
Convolution ??? ??
????
?? ??? ??? ?? ?? ???? ??? ?? ?? ??? ?? ???? ????
??
Convolution technique
?? ??? ??? ??? ??? ??? ???? ?? ?? ?? ??? ???? ??
? ?
?? ???. ????? ?? ?? ?? ?? ?? ?? ??
53DIP (Digital Image Processing) - Area Processing
1(Convolution)
Convolution technique ??? ?
? Embossing - ????? ??? ?
? Bluring - ??? ????
? Sharpning - ??? ??? ????? ?? ??
? Edge Detection - ??? ??
? Spatial Filtering (?????)
54DIP (Digital Image Processing) - Area Processing
1(Embossing)
??? ?? (Embossing Effect)
???? ??? ??? ?? ?
? ?
???? 0, ?? 0
???? ??
-1 0 0
0 0 0
0 0 1
55DIP (Digital Image Processing) - Area Processing
1(Embossing)
?????? ??? ??? ?? ??
- RGB ?? ? HSI ?? ?? ??
- ? ???? ?? ? RGB ?? ?? ??
2) RGB ?? ? ? ?? ?? ? ? ?? ?? ?? ? RGB ?? ???
? ??? ??? 1)?? ??? I ?? V ??? ???? ??? HSI ?????
??? H? ? ??? ?? ??? ??? ????? ? ???? ????.
56DIP (Digital Image Processing) - Area Processing
1(Embossing)
?????? ??? ??? ?? ??
1)? ?? ??? ?? ??? ???
2)? ?? ??? ?? ??? ???
57DIP (Digital Image Processing) - Area Processing
1(Bluring)
??? (Bluring) ??
??? ??? ??? ???? ??? ?(??? ?? ???)
? ?
55 ???
33 ???
1/9 1/9 1/9
1/9 1/9 1/9
1/9 1/9 1/9
1/25 1/25 1/25 1/25 1/25
1/25 1/25 1/25 1/25 1/25
1/25 1/25 1/25 1/25 1/25
1/25 1/25 1/25 1/25 1/25
1/25 1/25 1/25 1/25 1/25
?? ???? ?? 1 ? MM ???? ?? ? ??? 1/(MM)
58DIP (Digital Image Processing) - Area Processing
1(Bluring)
???? ???(Bluring) ??
33 ???? ??
1/16 1/8 1/16
1/8 1/4 1/8
1/16 1/8 1/16
?? ???? ?? 1
?? ?????? ???? ?? ???? ??? ??? ??? ???? ?? ??
BUT ??? ??? ??
59DIP (Digital Image Processing) - Area Processing
1(Bluring)
?? ???(Bluring)
??(noise)
???? ???? ????? ???? ?? ?? ?? ??? ?
???? ??(Gaussian Noise)
???? ??? ???? ??? ??
Impulse Noise Spike Noise
0? 255 ?? ???? ??? ???? ???? ??? ????? ?? ??? ??
?? ??? ? ?? ?????(Median filter)? ??
60DIP (Digital Image Processing) - Area Processing
1(Bluring)
???? ???
????? ???
???? ???
1) ???
???? ???? ?? ? ?) ?, ?? ?
2) ???
???? ???? ? ? ?) ?, ??, ???, ??? ?
61DIP (Digital Image Processing) - Area Processing
1(Sharpning)
??? (Sharpning) ??
??? ???? ? (??? ?? ???)
? ?
???? ??? ?? ?? ?? ???
???? ?? ???
0 -1 0
-1 5 -1
0 -1 0
-1 -1 -1
-1 9 -1
-1 -1 -1
-1/9 -1/9 -1/9
-1/9 8/9 -1/9
-1/9 -1/9 -1/9
lt33 ???? ??,?? ???? ? 1gt
lt?? ???? ? 0gt
62DIP (Digital Image Processing) - Area Processing
1(Sharpning)
???
63DIP (Digital Image Processing) - Area Processing
1(Sharpning)
??? (Sharpning)
unsharp masking
(? ??) (??? ?? ???? ??)
??? ??(high-boost) ???
a(? ??) (??? ?? ???? ??)
???? ?? ???
High-Boost aOriginal Lowpass
-a/ 9 -a/ 9 -a/ 9
-a/ 9 -w/ 9 -a/ 9
-a/ 9 -a/ 9 -a/ 9
? a1 ??? ?? ?? ??? ? agt1 ? ??? ??? ?? ???
? ??? ??? w9a -1 ?
64DIP (Digital Image Processing) - Area Processing
1(Sharpning)
??? (Sharpning)
??? ??
??? ?? ??? ??? ?? ???(a1.2) ??? ?? ???(a1. 5)
1) ?? ?? ??? ?? 2) unsharp masking 3)
high-boost filtering 4) Laplacian filter
- ??? ??? ??? ????? ??? ?? ???? ???? ?? ????
??(noise)? ??
65DIP (Digital Image Processing) - Area Processing
1(BluringSharpning)
???? ???? ??
Bluring
- ??? ??? ?? ?? / ???? ?? ?? - ?? ?? ?? / ?? ????
?? 1 - ??? ?? ??, ??? ?? ?? ???
Sharpning
- ??? ??? ?? ?? / ?? ?? ??? ?? - ?? ?? ??? ?? ??
?? ??? ? ??? ?? ?? ?? ???? ?? zero
? unsharp masking (???) (??? ?? ???? ??)
? ??? ?? ?? (???? ?? ??)(??? ?? ???) - ????
??? ???? ??
66DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
??(Egde)
- ??? ??? ??? ?? ??? ?? ???, ?? ??? ??? ??? ???? ??
- ???? ?? ??? ??(Boundary)? ???? ?
- ??(Shape), ???(Direction)? ??? ? ?? ? ?? ?? ???
??? ?? ??
??? ?? ?? ??
1) ????? (homogenity operator) 2) ????
(difference operator) 3) ??? ??/??? ???
???(threshold) ??
67DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
????? ??? ??? ?? ??
?? ??(edge extraction)
????(image segmentation)? ??
???????? ??
- ?? ???? ?? ?? ??? - ??? ???? ??? ??? ??? ???? ??
???????? ??
8? ????? ??? ? ??? ?? ????? ?? ??
68DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
????? ??? ??? ?? ??
??
- 33 ?? ??????? ??? 8??? ?? ??
- 2) ? ??? ??? ? ?? ? ?? ??? ????? ??
69DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
????? ??? ??? ?? ??
70DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
???? ??? ??? ?? ??
????? ??? ? ?? ???? ???? ?? ???? ?? (4?? ??)
71DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
???? ??? ??? ?? ??
72DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
???? ??? ?? ??/??
?? ??? ??? ??? ?? ?? ???? ?? ?? - ?? ???
???, ?? ??? ??
??? ??? ??
1) ?? ???? ??? ?? ?) ?? ???? 48? ????,
48??? 255? 48??? 0?? ? ?? 2) ?? ???? ??? ??
?) ?? ??????, 48??? 0, 192??? 255, ??? ???
? ??
73DIP (Digital Image Processing) - Area Processing
2(Edge Extraction)
???? ??? ?? ??/??
74DIP (Digital Image Processing) - Area Processing
2(First-Order Differential operator)
1? ?? (First-Order Differential operator)
Gradient Edge Dector
- ??? ???? ???? ???? ???? ???, ???? ????? ??? ?? ??
- ??? ????? ???, ?? ?? ???(???)? ??
1??? ?? ??
1????? abs(??????)abs(??????)
? sqrt( ??????2 ??????2) H(x,y)
abs(H_r(x,y)) abs(H_c(x,y))
?sqrt(H_r(x,y)2 H_c(x,y)2)
(r, c ??, ??)
75DIP (Digital Image Processing) - Area Processing
2(First-Order Differential operator)
1? ??? ??
76DIP (Digital Image Processing) - Area Processing
2(First-Order Differential operator)
Roberts
??
?? ???? ???? ?? ????? ????.
??
??? ?? ? ??? ?? ??. ??? ????.
77DIP (Digital Image Processing) - Area Processing
2(First-Order Differential operator)
Prewitt
??
??? ?? ??? ??? ?
??
??? ??? ??? ??? ???? ??.
78DIP (Digital Image Processing) - Area Processing
2(First-Order Differential operator)
Sobel
??
??? ?? ??? ??? ?
??
??? ??? ??? ??? ???? ??.
79DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
2? ?? (Second-Order Differential operator)
1? ??
???? ??? ???? ??? ??? ???? ??
2? ??
?? ??? ???? ???? ??
2? ??? ??
? ?
??? ?? ???? ???? ??? ?? ?
80DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
Laplacian (?????)
- ??? ??? ??? ??, ?? ??? ?? ? ?? ??? ? - ?? ?????
?? ? ???? ??? ??
????? 1
????? 2
????? 3
?? ???? ? 0
lt4??????gt
lt8??????gt
? ?
??? ?? ???? ???? ??? ?? ?
81DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
Laplacian (?????) ?
????? ?? ???? ???? ?? ?? ??? ??? ????(??? ??) ??
???? ??? ???(zero -crossing) ??? ??
82DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
LoG (Laplacian of Gaussian)
Gaussian Smoothing? ??? ?, -gt ?????? ??
??
83DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
LoG (Laplacian of Gaussian) ?
84DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
DoG (Differential of Gaussian)
LoG? ?? ??? ???? ?? LoG? ????
? ???? ??? ???? ?? ??? ?? ?? ??? ???? ??? ??
??
??
85DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
DoG (Differential of Gaussian) ?
86DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
Canny ?? ???
LoG? ?? ??? ???? ?? LoG? ????
1) ?? ?? (good detection) 2) ?? ??? (good
localization) 3) ??? ??? ?? (response to a single
edge)
??
1. ???? ???? ??? ????. 2. ??? ?? ????? ??? ???
?? 3. ? ???? ??? ??? ?? 4. ? ??? ??? ??? ??? 2?
??? ??. 5. 2????? 0?? ??? ???. 6. 0? ?? ?? ??? ??
??? ??.
????
87DIP (Digital Image Processing) - Area Processing
2(Second-Order Differential operator)
Canny?? ?
88DIP (Digital Image Processing) - Area Processing
3(Color Edge Detection)
?? ?? ?? ??
- HSI ????, ?? ??? ?? ??? I ? ?? ??, ??
- RGB ???? ? ??? ??? ????? ??, ?? ??, ??? ??
??? ?? ? ?? ??
G(x,y) sqrt(edge_red(x,y)2
edge_green(x,y)2
edge_blue(x,y)2)/sqrt(3)
?? ??? ?? ???? ?? ???? ??? ?? ? ? ??
89DIP (Digital Image Processing) - Area Processing
3(Color Edge Detection)
LoG ???? ??? ?? ??
90DIP (Digital Image Processing) - Area Processing
3(Mean Filter)
?? ?? (Mean Filter)
- ?? ?? ??? ?? ?? ?? ???? ????? ?? ?? ?? ???? ??
- ??? ??? ???? ??? ??? ???
?? ??? ??
91DIP (Digital Image Processing) - Area Processing
3(Mean Filter)
?? ?? (Mean Filter) ?
92DIP (Digital Image Processing) - Area Processing
3(Separable Mean Filter)
?? ?? ?? (Separable Mean Filter)
- ?????? ??
- ??? ???.
- ??? ??? ??? ??.
- ???? ??? ??? ? ???? ??.
?? ??? ??
93DIP (Digital Image Processing) - Area Processing
3(Median Filter)
??? ?? (Median Filter)
- ??? ??? ????? ??
- ???? ?? ?? ??? ??? ?? edge? ? ??
??? ??? ?? ??? ??
94DIP (Digital Image Processing) - Area Processing
3(Median Filter)
??? ?? (Median Filter) ?
???? ??
????? ??? ????? ??
??? ??
??? ??? ??
95DIP (Digital Image Processing) - Area Processing
3(Median Filter)
??? ?? (Median Filter) ? 2
96DIP (Digital Image Processing) - Area Processing
3(Weighted Median Filter)
?? ??? ?? (Weighted Median Filter)
- 1981? Justusson? ?? ??
- ???? ??? ?? ???? ?? ??? ????? ????? ??? ??? ????
?? - ?? ??? ??? ?? ??? ??? ??
?? ??? ??? ??
?, ??? ?? ??
97DIP (Digital Image Processing) - Area Processing
3(Separable Median Filter)
?? ??? ?? (Separable Median Filter)
- ??? ??? ??? ?? (?????? ??? ??)
- ??? ??? ??
- ??? ??
- ???? ??? ??? ???? ??.
?? ??? ??
98DIP (Digital Image Processing) - Area Processing
3(MIN /MAX Filter)
??? / ??? ??
- ???? ????? ???? ?? ???? ??? ??
- ?) ?????? ??
- ?? ??? ?? ???? ??? ????? ?? ???? ??
?? ??? ?? ??
??? ???
??? ??? ?? ??
??? ???
99DIP (Digital Image Processing) - Area Processing
3(Expansion Contraction )
Expansion Contraction
??(Expansion)? ??(Contraction)? ?? ????? ?? ??
MIN ? MAX (Opening) ??? ??? ??? ? ????.
?? ? ??
MAX ? MIN (Closing) ??? ??? ??? ? ????.
?? ? ??
100DIP (Digital Image Processing) - Area Processing
3(Ranked Order Filters )
Ranked Order Filters
??
- window? ??? ??? ???? ??? ??, rank? ???? ??? ????
???? ??
????
- ???? ??
- ??? ??? ? rank? ???? ???? ?? ?? ??
- if rank0 then Mask0 -gt Min filter
- if rankN/2 then MaskN/2 -gt Median
filter - if rankN then MaskN -gt Max filter
101DIP (Digital Image Processing) - Area Processing
3(Ranked Order Filters )
Ranked Order Filters
102DIP (Digital Image Processing) - Area Processing
3(trimmed mean filter)
trimmed mean filter
- ??? ??? ?? ??? ??? ? ??
- Trimmed Filters? ?? ??? ??? ??? ?? ???? ??? ???
???? Filtering - ???? ???? ???? ?????? ???? ??? ??? ???? ?? ????
??? ? ?? ???? ??
103DIP (Digital Image Processing) - Area Processing
3(a-trimmed mean filter)
a-trimmed mean filter
- ??? ??? ?? ??? ??? ? ??
- a? 0?? 0.5?? ??
- a? 0.5?? ??? ???? ??, a? 0?? ?? ???? ??
?? ??
- ????? 33 ??? ???.
- ?????? ??
- a? 0.5?? a 9 0.5 9 4.5? ?? ???? ?? 4? ??
?? 4?? ?? ?? - ?? ?? ? ?? ?? ?? ??? ? (??? ??)
104DIP (Digital Image Processing) - Area Processing
3(a-trimmed mean filter)
a-trimmed mean filter
105DIP (Digital Image Processing) - Area Processing
3((r-s)-Fold trimmed mean filter)
(r-s) Fold trimmed mean filter
106DIP (Digital Image Processing) - Area Processing
3(a Fold Winsorized mean filter)
a Fold Winsorized mean filter
107DIP (Digital Image Processing) - Area Processing
3((r-s) Fold Winsorized mean filter)
(r-s) Fold Winsorized mean filter
108DIP (Digital Image Processing) - Area Processing
3(Modified Trimmed Mean Filter)
Modified Trimmed Mean Filter
- window? ??? ???? ????.
- Median?? ???.
- ??? q ?(???? ??? ??? ??)? ???.
- ???? ? ?? ?? ?? ????, q? ?? ?? ?? ??
109DIP (Digital Image Processing) - Area Processing
3(K-Nearest Neighbor Filter )
K-Nearest Neighbor Filter
??
- ???(central)? ???? ?? ??? ????, ???? K??? ??? ???
?? - K? ??? (1KN)??.
????
- Center?? ???.
- ???(K?)? ???. (1KN)
- ???? ?? ??? ???? K? ?? ?? ??? ???
110DIP (Digital Image Processing) - Area Processing
3(K-Nearest Neighbor Filter )
K-Nearest Neighbor Filter
111DIP (Digital Image Processing) - Area Processing
3(Modified K-Nearest Neighbor Filter )
Modified K-Nearest Neighbor Filter
??
- ???(central)? ???? ?? ? ???? ??? ?? ?? ??? q? ??
?? ?? ??? ?? - ?? q? ?? Noise ???? s??, Sigma filters
????
- Center?? ???.
- ???(q?)? ???.
- ???? ?? ??? ???? K? ?? ?? ??? ???
112DIP (Digital Image Processing) - Area Processing
3(Modified K-Nearest Neighbor Filter )
Modified K-Nearest Neighbor Filter
113DIP (Digital Image Processing) - Area Processing
4(Adaptive Median Filter )
Adaptive Median Filter
??
- ??? ????? ?? ? ??? ???? ??? ??? ????, ? ?? ??
????, ? ??? ??
????
- ?? ?? ??
- if ?? ?? ???? Median Filter
- else ? ??
????
1. ???? ?? ??? ???? 2. ??? ?? ???? 3. ??? ?? ??
114DIP (Digital Image Processing) - Area Processing
4(Adaptive Median Filter )
Adaptive Median Filter
115DIP (Digital Image Processing) - Area Processing
4(d-Adaptive Median Filter )
d-Adaptive Median Filter
??
????, ????? ?? ???? ?? ?? ?(d)? ??? ?
????? ?? ??? ????? ???? Median Filter?
?? ?? ?? ?? ??? ? ??? ???? ?? ??? ????
???? ??
????
- ???? ???
- if abs(??? - ?? ?) lt d ?? ? ??
- else Median Filter
116DIP (Digital Image Processing) - Area Processing
4(d-Adaptive Median Filter )
d-Adaptive Median Filter
117DIP (Digital Image Processing) - Area Processing
4(q-Adaptive Median Filter )
q-Adaptive Median Filter
??
?? ????? ??? ???(q)? ??? ??? ???? ?? ?
Median Filters? ???? ?? ??? ??? ??? ?? ? ?
??? ???? ??
????
- ?????? ?? ???
- if ?????? gt q ?? Median Filter
- else ? ??
?????? ???(?????)? central ?? ?? ????
118DIP (Digital Image Processing) - Area Processing
4(q-Adaptive Median Filter )
q-Adaptive Median Filter
119DIP (Digital Image Processing) - Area Processing
4(k-Adaptive Median Filter )
k-Adaptive Median Filter
- q-Adaptive Median Filters? ??? ??? ??
- ??? ??? ?? ??? ??
- ?? ?????? ???? ??? ?? ? ?? ??? ?? ?? ? ?? ??
??
?? ????? ??? 3? ?? k? ??? ?? ?? ? ??(???
????)?? ??? ? ??? ?? ??? ?? ?? ? ?? ???? ????
???? ?? ? Median Filters ?? k ?? ?? ??? ???
???? ??? ????? ? ?? ?? ?? Midian Filter? ???? ???
????.
120DIP (Digital Image Processing) - Area Processing
4(k-Adaptive Median Filter )
k-Adaptive Median Filter
????
- ?????? ??? ???
- if ?? ???? ?? ? ? ?? k? ?? ?? ? ??
- else Median Filter
121DIP (Digital Image Processing) - Area Processing
4(k-Adaptive Median Filter )
k-Adaptive Median Filter
122DIP (Digital Image Processing) - Area Processing
4(a-Adaptive Median Filter )
a-Adaptive Median Filter
- ?? ??? ????? ?? ? ????? ?? ???? ??? ???? ???? ??
- ????? ??? ??? ???? ???? ?????? ?? ????? ?? ?????
??? ?? ??? ?????.
??
????
?? ????? a? ? ?????? ?? ?? ? Median Filter?
?? ??? ? ? ??? ??
1. ????? ?? ????? ??? 2. if?? ???? gt
(1 a x ????) ?? ??? ?
??? ? ?? ?
123DIP (Digital Image Processing) - Area Processing
4(a-Adaptive Median Filter )
a-Adaptive Median Filter
124DIP (Digital Image Processing) - Topological
Processing
??? ??(Topological processing)
??? ??? ???? ??? ??? ???? ??? ???? ?
(?) ???(scale ?? ??? ?) ??(Rotation)
??(Translation) ?? ?
?? ??
125DIP (Digital Image Processing) - Topological
Processing(??)
??(Transformation, Matching, Imaging)
??? ? ?? ??(Source image)? ??? ?? ?? (Target
image)? ??? ???? ?? ??? ???? ??? ?
??? ?? ? ??? ??
x, y? ??? ?? ?? ??? ?? ??? ?? ?? ?
??? ??
- ?? ??? ???? ? ?? ???? ??? ?? ???? ???? ?? ???
???? ??? ??? ? ?? ?? - ??? ??? ???? ?? ???? ??
??? ??
126DIP (Digital Image Processing) - Topological
Processing(??)
??? ??? ???
? ??? (overlap)
2?? ?? ??? ?? ?? ??? ?????
? ? (hole)
????? ???? ??, ?? ???? ?? ??? ?? ??
127DIP (Digital Image Processing) - Topological
Processing(??)
??? ??
????? ??? ?? ??? ???? ?? ?? ???? ?? ??? ?? ?? ???
? ?? ??
128DIP (Digital Image Processing) - Topological
Processing(Interpolation)
??? (Interpolation)? ??
- ??? ??? ?? ?? ??? ????? ??? ??? ?? ???? ???? ??
- ??? ????? ?? ??? ????? ??? ?? ????? ?? ??
??(Running Time)? ??
??? 2? ???? ??
???
x source ( x dest ) / 2 y source ( y dest ) /
2
? Nearest Neighbor interpolation ? Bilinear
interpolation ? Cubic Convolution
interpolation ? B-Spline interpolation
129DIP (Digital Image Processing) - Topological
Processing(Interpolation)
Nearest Neighbor Interpolation
- ?? ??? ??? ??? ?? ??? ?? ??? ?? ??? ???? ??
- ????? ???? ??, ??? ??? ?? ??? ??? ??? ??
- ??? ???? ???? ??? ??? ?????? ??? ??? ? ?? ??? ???
?? - ??? ?? ??? ???? ?? ???? ?? ?? ??? ??? ?? ??
?? ??? ?? ?? ???
130DIP (Digital Image Processing) - Topological
Processing(Interpolation)
Bilinear Interpolation
- ??? ??? ??? ?? ? ?? ?? ??? ???? ???? ?? ?? ?
- ???? ????? ??????, ?? ???? ??? ???? ?????? ??? ???
131DIP (Digital Image Processing) - Topological
Processing(Interpolation)
Bilinear Interpolation ??
- ?? ??? ???? ????? ? ???? ??? ??
- 3?? ??? ?? ?????? ???? ??? ?? ?? ????? ??? ??? ??
??? ??
??? ???
132DIP (Digital Image Processing) - Topological
Processing(Interpolation)
?? Interpolation
3? ?? ???
- cubic interpolation
- 44 ? ????? ???? ???? ??
- ??? ????? ??? ? ???? ????? ? ??
B-???? ???
- ???? ????? ??? ??????, B-???? ??? ??? ?? ???
??????. - ?? ???? ?? ?????? ??