Sharpening Spatial Filters ( High Pass) - Philadelphia University

9m ago
8 Views
1 Downloads
753.72 KB
24 Pages
Last View : Today
Last Download : 3m ago
Upload by : Harley Spears
Transcription

Sharpening Spatial Filters ( high pass) Previously we have looked at smoothing filters which remove fine detail Sharpening spatial filters seek to highlight fine detail Remove blurring from images Highlight edges Useful for emphasizing transitions in image intensity Sharpening filters are based on spatial differentiation Hanan Hardan 1

Spatial Differentiation Differentiation measures the rate of change of a function Let’s consider a simple 1 dimensional example Hanan Hardan 2

Spatial Differentiation A B Hanan Hardan 3

Spatial filters : Sharpening ( high pass) 1.LAPLACE 2.SOBEL Hanan Hardan 4

Spatial filters : Sharpening 1) LAPLACE Laplace kernels Hanan Hardan 5

Spatial filters : Sharpening LAPLACE – 1st derivative Use: for highlighting fine detail or enhancing detail that has been blurred. Example: apply the following laplace on the highlighted pixel 153 157 156 153 155 159 156 158 156 159 155 158 154 156 160 So the value after filter -14 154 157 158 160 160 We call the resultant image: sharpened image. 157 157 157 156 155 154*4 – 158- 156-158-158 -14 Filtered image original sharpened image Hanan Hardan 6 The value in the filter image 154-14 130

Spatial filters : Sharpening LAPLACIAN Hanan Hardan 7

Spatial filters : Sharpening LAPLACE – 1st derivative In the sharpened image , we may get negative value, We deal with this case in 3 ways: 1. Covert negative value to zero (matlab does this) 2. Apply 2nd derivative of laplace 1. Apply laplace again to the resultant sharpened image Hanan Hardan 8

Spatial filters : Sharpening LAPLACE – 2nd derivative Example: apply the following laplace 2nd derivative on the highlighted pixel 153 157 156 153 155 159 156 158 156 159 155 158 154 156 160 154 157 158 160 160 157 157 157 156 155 154*4 – 158- 156-158-158 -14 Solution: apply laplace to all pixels Then apply it again to our pixel:-14*4 – 10 -10 – (-6) -4 -74 So the value after 2nd derivative filter -74 Hardan the value of pixel in the Hanan filter image 154-74 80 9

Spatial filters : Sharpening 1st VS 2nd derivative sharpening 1st derivative sharpening produces thicker edges in an image 1st derivative sharpening has stronger response to gray level change 2nd derivative sharpening has stronger response to fine details, such as thin lines and isolated points. 2nd derivative sharpening has double response to gray level change Hanan Hardan 10

es taken from Gonzalez & Woods, Digital Image Processing (2002) Laplacian Image Enhancement Original Image Laplacian Filtered Image Sharpened Image In the final sharpened image edges and fine detail are much more obvious Hanan Hardan 11

es taken from Gonzalez & Woods, Digital Image Processing (2002) Laplacian Image Enhancement Hanan Hardan 12

Laplace Sharpened image Hanan Hardan Laplace filtered image 13

Laplacian Image Enhancement Imfilter : for applying filter. Fspecial : for choosing the filter: Example: In MATLAB : v imread('picture2.jpg'); h fspecial('laplacian‘,0); Xp imfilter(v,h); imshow(Xp) imshow(Xp v) Note: Xp imfilter(x,p, ‘replicate‘) This command will apply border padding instead of zero padding 14 Hanan Hardan

Spatial filters : Sharpening 2) Sobel Detects horizontal edges Detects vertical edges Hanan Hardan 15

Spatial filters : Sharpening 2) Sobel we can apply the sobel horizontal kernel or the sobel vertical kernel or both and adding them together. Hanan Hardan 16

Spatial filters : Sharpening 2) Sobel Hanan Hardan 17

MATLAB Imfilter : for applying filter. Fspecial : for choosing the filter: Example: In MATLAB : v fspecial(‘sobel’) horizontal sobel Y v’ vertical sobel m imread(‘cameraman.tif‘); Fp imfilter(m,v) this command will apply sobel filter on image Imshow(Fp) this command will show the sobel sharpened image imshow(m Fp) this command will show the filtered image after applying sobel Hanan Hardan 18

Spatial filters : Sharpening 2) Sobel imshow(v),figure,imshow(f v); v imread('picture2.jpg'); h fspecial('sobel'); h1 h'; p1 imfilter(v,h); p2 imfilter(v,h1); p3 abs(p1) abs(p2); imshow(v),figure,imshow(p3 v); Hanan Hardan 19

Sharpening Filters: Laplacian Hanan Hardan Sobel 20

Combining Spatial Enhancement Methods Successful image enhancement is typically not achieved using a single operation Rather we combine a range of techniques in order to achieve a final result This example will focus on enhancing the bone scan to the right Hanan Hardan 21

Images taken from Gonzalez & Woods, Digital Image Processing (2002) Combining Spatial Enhancement Methods (cont ) (a) Laplacian filter of bone scan (a) (b) Sharpened version of bone scan (c) achieved by filter subtracting (a) Sobel Hanan Hardan bone scan (a) and (b) of (d) 22

es taken from Gonzalez & Woods, Digital Image Processing (2002) Combining Spatial Enhancement Methods (cont ) Sharpened image which is sum of The product of (c) (a) and (f) and (e) which will (f) be used as a mask (e) Image (d) smoothed with a 5*5 averaging filter Hanan Hardan Result of applying apower-law trans. to (g) (h) (g) 23

Combining Spatial Enhancement Methods (cont ) Compare the original and final images Hanan Hardan 24

Spatial filters : Sharpening 1st VS 2nd derivative sharpening 1st derivative sharpening produces thicker edges in an image 1st derivative sharpening has stronger response to gray level change 2nd derivative sharpening has stronger response to fine details, such as thin lines and isolated points. 2nd derivative sharpening has double response to .

Related Documents:

Print Scan Card Reader LPR* Print Scan Card Reader LPR* 1 Avision MF3200 Pass Pass N/A Pass Pass Pass N/A Pass 2 Avision MF3230 Pass Pass N/A Pass Pass Pass N/A Pass . 19 Brother MFC-7420 MFP Pass Pass N/A Pass Pass Pass N/A Pass 20 Brother MFC

LPR* Print Scan Card Reader LPR* 1 Avision MF3200 Pass Pass N/A Pass Pass Pass N/A Pass 2 Avision MF3230 Pass Pass N/A Pass Pass Pass N/A Pass . 17 Brother MFC-7420 MFP Pass Pass N/A Pass Pass Pass N/A Pass 18

LPR* Print Scan Card Reader LPR* Avision MF3230 Pass Pass* N/A Pass Pass Pass* N/A Pass BenQ CM3000 Pass Pass N/A N/A Pass Pass N/A N/A . Brother MFC-7420 Pass Pass N/A Pass Pass Pass* N/A Pass Canon CanonScan Lide

26 Canon CanonScan Lide 5.0 N/A Pass N/A - N/A Pass N/A - Model Name Update: 03/05/2012 TP-LINK Print Server Compatibility List Windows XP Windows Vista / Windows 7 . 130 Canon MX850 Pass Pass Pass Pass Pass Pass Pass Pass 131 Canon Pixus 990i Pass N/A N/A Pass Pass N/A N/A Pass

Epson ME205 Pass Pass N/A Pass Epson LQ-635C Pass N/A N/A Pass Epson LQ-690C Pass N/A N/A Pass Epson LQ-2190 Pass N/A N/A Pass Epson ME 320 Pass Pass N/A Pass

IEC 61000-4-3: 2010 . IEC 61000-4-4: 1995 . IEC 61000-4-5: 1995 . IEC 61000-4-6: 1996 . IEC 61000-4-8: 1993 . IEC 61000-4-11: 1994 Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass . Test Data: EMC Immunity Test Resu

Designing FIR Filters with Frequency Selection Designing FIR Filters with Equi-ripples Designing IIR Filters with Discrete Differentiation Designing IIR Filters with Impulse Invariance Designing IIR Filters with the Bilinear Transform Related Analog Filters. Lecture 22: Design of FIR / IIR Filters. Foundations of Digital .

classroom is small-group work. Indeed, from early efforts at group-based, Davidson, N., Major, C. H., & Michaelsen, L. K. (2014). Small-group learning in higher education—cooperative, collaborative, problem-based, and team-based learning: An introduction by the guest editors. Journal on Excellence in College Teaching, 25(3&4), 1-6. 2 Journal on Excellence in College Teaching active learning .