image enhancement - sharif university of...
TRANSCRIPT
![Page 1: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/1.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20111
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Image Enhancement:– No Explicit definition
• Methods– Spatial Domain:
• Linear• Nonlinear
– Frequency Domain:• Linear• Nonlinear
![Page 2: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/2.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20112
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Spatial Domain Process
, ,g x y T f x y
![Page 3: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/3.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20113
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• For 11 neighborhood: – Contrast Enhancement/Stretching/Point process
• For w w neighborhood:– Filtering/Mask/Kernel/Window/Template Processing
s T r
![Page 4: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/4.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20114
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
![Page 5: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/5.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20115
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Image Negatives: 1s L r
![Page 6: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/6.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20116
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Log Transform: log 1s c r
![Page 7: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/7.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20117
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Power-Law Transform: s c r
![Page 8: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/8.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20118
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Original =0.6
=0.4 =0.3
![Page 9: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/9.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 20119
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Original =3
=4 =5
![Page 10: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/10.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201110
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Another Medical Example:
![Page 11: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/11.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201111
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Contrast StretchingOriginal
C. S. THR.
![Page 12: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/12.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201112
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Gray Level Slicing
![Page 13: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/13.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201113
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Processing:– Enhancement based on statistical Properties:
• Local• Global
– Histogram Definition:
, 0, 1 , 0, *1*
k k k k
kk k
h r n r L n M Nnp r nn M N
![Page 14: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/14.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201114
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Example:
![Page 15: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/15.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201115
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Visual Meaning:– Dark– Bright– Low Contrast– High Contrast
![Page 16: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/16.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201116
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
(0) 0(1) 1
:( ) 0( ) 0
TT
s T rT rT r
• Histogram Equalization:– First assume continuous case.– Seek for a suitable transform (Except for negative):
![Page 17: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/17.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201117
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
0
( ) 0,1r
r Ss T r p w dw P s U
0 0
min
min
, 0,1, , 1
ˆ 1 0.51
k kk
k k r JJ J
k kk
k
nS T r P r k Ln
S SS Int LS
Histogram Equalization
![Page 18: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/18.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201118
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Transformation Function:
![Page 19: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/19.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201119
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Medical Examples:
![Page 20: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/20.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201120
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Example (Mars Image and its Histogram):
![Page 21: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/21.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201121
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Equalization:
![Page 22: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/22.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201122
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Desired
Initial CDF Modified CDF
![Page 23: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/23.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201123
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Local Enhancement:
![Page 24: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/24.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201124
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Statistics For Image Enhancement:– Uses of Statistical Parameters
1
00
11
20
10variance
Ln
n i ii
L
i ii
r r m p r
m r p r
![Page 25: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/25.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201125
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Histogram Statistics For Image Enhancement:– Global mean and global variance:
• Gross adj. of overall intensity and contrast
– Local mean and local variance:• Changes dependents on predefined region about pixels• Local Definitions:
, ,
22
, ,
, , ,
, , , ,
Ss t S x y
Ss t S x y
m x y r s t p r s t
x y r s t m x y p r s t
![Page 26: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/26.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201126
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Measure of relative darkness/lightness:– Compare local mean vs. global mean.
• Measure of relative contrast:– Local variance vs. global variance.
• Rules:
0 1 2. , , ,,
, .S G G S GE f x y m x y K M and k D x y k D
g x yf x y OW
![Page 27: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/27.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201127
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• A SEM sample images:
![Page 28: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/28.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201128
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Local Mean Local Var E or one
![Page 29: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/29.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201129
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Enhanced Images:
![Page 30: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/30.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201130
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Image Subtraction:
• Application in medical imaging:– Angiography– DSA
, , ,g x y f x y h x y
![Page 31: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/31.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201131
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Contrast Agent Enhancement:
![Page 32: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/32.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201132
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
, , ,a b
s a t b
g x y w s t f x s y t
• Windows Processing
![Page 33: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/33.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201133
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Smoothing Linear Filter:
, ,,
,
a b
s a t ba b
s a t b
w s t f x s y tg x y
w s t
![Page 34: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/34.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201134
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Blurring vs. Denoising
![Page 35: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/35.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201135
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Order Statistic filters:– Median– Max– min– Good for Salt-Pepper/impulse noise.
![Page 36: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/36.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201136
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Median and LPF Comparison:
![Page 37: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/37.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201137
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Sharpening Spatial Filter:– First Derivative:
• Discrete Implementation:
– Second Derivative:• Discrete Implementation:
1, ,f f x y f x yx
2
2 1, 2 , 1,f f x y f x y f x yx
![Page 38: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/38.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201138
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
![Page 39: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/39.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201139
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• 1st and 2nd Derivative Comparison:– First Derivative:
• Thicker Edge;• Strong Response for step changes;
– Second Derivative:• Strong response for fine details and isolated points;
• Double response at step changes.
![Page 40: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/40.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201140
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Laplacian as an isotropic Edge Enhancer:
• Discrete Implementation:
2 22
2 2
f ffx y
2 1, , 1 1, , 1 4 ,f f x y f x y f x y f x y f x y
0 1 01 4 1 900 1 0
isotropic
1 1 11 8 1 451 1 1
isotropic
![Page 41: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/41.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201141
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Practically use:
![Page 42: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/42.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201142
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• Background Recovering:
2
2
, ,,
, ,f x y f x y sign
g x yf x y f x y sign
0 1 01 5 1 90
0 1 0isotropic
1 1 11 9 1 451 1 1
isotropic
![Page 43: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/43.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201143
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
2
2
, ,,
, ,f x y f x y sign
g x yf x y f x y sign
![Page 44: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/44.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201144
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Two L. MaskSEM image
a. Mask Result b. Mask Result
(Sharper)
![Page 45: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/45.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201145
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• First Derivative-Gradient:
1 222
x
x
fG xf
fGy
f f f ffx y x y
![Page 46: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/46.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201146
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• First Derivative-Gradient:– Discrete Implementation:
9 5 8 6
1 22 29 5 8 6
9 5 8 6 :
x yG z z G z z
f z z z z
f z z z z Roberts Cross Gradient
![Page 47: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/47.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201147
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Roberts Cross Gradient
Sobel
(2 1 for prewitt)
![Page 48: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/48.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201148
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• An Example (Contact Lens) of Sobel:
![Page 49: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/49.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201149
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Bone Scan Laplacian
Original +Laplacian
• Combination
Soble of
Original
![Page 50: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/50.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201150
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
Smoothed Sobel (Orig. + L.)*S.Sobel
Orig.+
(Orig. + L.)*S.SobelApply Power-Law
![Page 51: Image Enhancement - Sharif University of Technologyee.sharif.edu/~miap/Files/DIP4MIAP(ForView)S_Enhancement.pdf · ee.sharif.edu/~miap E. Fatemizadeh, Sharif University of Technology,](https://reader030.vdocuments.net/reader030/viewer/2022032712/5b6965ec7f8b9af77c8df40a/html5/thumbnails/51.jpg)
ee.sharif.edu/~miap
E. Fatemizadeh, Sharif University of Technology, 201151
Medical Image Analysis and Processing
Image Enhancement in Spatial Domain
• MATLAB Command:– Image Statistics:
• means2, std2, corr2, imhist, regionprops
– Image Intensity Adjustment:• imadjust, histeq, adapthisteq, imnoise
– Linear Filter:• imfilter, fspecial, conv2, corr2,
– Nonlinear filter:• medfilt2, ordfilt2,