1 / 33

Chapter 5: Neighborhood Processing

Chapter 5: Neighborhood Processing. Point processing: applies a function to each pixel Neighborhood processing: applies a function to a neighborhood of each pixel. ○ Neighborhood ( mask ). -- can have different shapes and sizes.

lee-hicks
Télécharger la présentation

Chapter 5: Neighborhood Processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 5: Neighborhood Processing • Point processing: applies a function to each • pixel • Neighborhood processing: applies a function • to a neighborhood of each pixel

  2. ○ Neighborhood (mask) • -- can have different shapes and sizes

  3. ○ Function + Mask = Filter Input signal Output signal Filter

  4. 1D 2D

  5. ◎ Linear filter: linear combination of the gray values in the mask

  6. 。Example

  7. ○ Processing near image boundaries • Ignore the boundary • Pad with zeros • (c) Copy boundary ○ Values outside the range 0-255 • Clip values • Scale values

  8. ◎ Convolution 5-9

  9. Discrete: Compared with Linear filtering:

  10. ◎ Correlation

  11. ◎ Smoothing Filters ○Averaging filters Input 3X3 5X5 7X7

  12. ○ Gaussian filters (1-D): (2-D):

  13. Averaging filters Gaussian filters

  14. ○ Separable filters e.g., Laplacian filter

  15. n × n filter: • 2 (n × 1)filters:

  16. Frequency domain filters:

  17. Frequency: a measure by which gray values change with distance

  18. High pass filter High frequency components, e.g., edges, noises Low frequency components, e.g., regions Frequency domain Spatialdomain Fouriertransform Low pass filter

  19. High pass Low pass

  20. ○ High pass filter ○ Low pass filter e.g., Averaging filter • e.g., Laplacian of • Gausian

  21. ◎ Edge Sharpening or Enhancement • ○ Unsharp masking

  22. 。 Idea of unsharp masking (a) Edge (b) Blurred edge (a) – k × (b)

  23. 。 Perform using a filter 。 Alternatives (a) (b) The averaging filter can be replaced with any low pass filters

  24. 。 Example: (a) Original (b) Unsharp Masking

  25. ○ High-boost filter • high boost = A(original) – (low pass) • = A(original) – ((original) - (high pass) • = (A-1)(original) + (high pass) 。 Alternatives: (a) (A/(A-1))(original) + (1/(A-1))((low pass) (b) (A/(2A-1))(original) + ((1-A)/(2A-1))((low pass)

  26. 。 Example: (a) (A/(A-1))(original) + (1/(A-1))((low pass) (b) (A/(2A-1))(original) + ((1-A)/(2A-1))((low pass)

  27. ◎ Non-linear smoothing filters : mask elements 。 Maximum filter: 。 Minimum filter:

  28. 。 Median filter • 。 K-nearest neighbors (K-NN) • 。 Geometric mean filter • 。 Alpha-trimmed mean filter • i) Order elements • ii) Trim off m end elements • iii) Take mean

  29. ◎ Region of Interest Processing

More Related