1 / 19

Targil 2 Image enhancement and edge detection.

Targil 2 Image enhancement and edge detection. For both we will use image derivatives. Image enhancement. Histogram enhancement (histogram equalization…) Reducing noise (smoothing, median) Sharpening. Emphasize the details Make the edges stronger Problem: we magnify the noise.

tex
Download Presentation

Targil 2 Image enhancement and edge detection.

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. Targil 2 Image enhancement and edge detection. For both we will use image derivatives.

  2. Image enhancement • Histogram enhancement (histogram equalization…) • Reducing noise (smoothing, median) • Sharpening • Emphasize the details • Make the edges stronger • Problem: we magnify the noise

  3. Sharpening: Subtracting The Laplacian F(x) F’(x) F’’(x) F(x)-F’’(x)

  4. Reminder : Convolution image Kernel, Convolver For example: means that

  5. Image derivatives (Convolve with [1 -1]) (Convolve with [1 -1]T) Abetter kernel: (Convolve with ½*[1 0 -1])

  6. Image derivatives (cont’) • Problem: the image is not continuous. • A better approximation: • Locally approximate the image with a smooth surface. • Compute the derivatives of this surface. Popular kernels:

  7. The second derivative Check that:

  8. The Laplacian Equation: The matrix: Subtracting the Laplacian:

  9. Sharpening Example

  10. Edge Detection Why do we need it ? • A compact representation of the image • More robust to light changes. • Easier to follow (tracking and computations of camera motion) • Segmentation: usually, edges are located at transitions between objects • Used for texture analysis

  11. Edge Detection Wide edge Noise • What are “edges” ? • How to find the edges ? • How to compute the exact location of an edge ? Texture T-junction Transition between objects

  12. The gradient The vector of derivatives Edge Size Edge Direction Derivative in Direction 

  13. The gradient Original Gradient

  14. Example: Derivatives Ix = -1 0 1 * = -1 0 1 * Iy = =

  15. Gradient Ix2 + Iy2 =

  16. Edge Localization-Zero Crossing Where exactly is the edge ? f Zero crossing of f’’ f’’ Problem: f’’ is very noisy Smooth first !

  17. A smoothing with a 2D Gaussian 1 1 (We usually use the binomial coefficients instead.) 1 2 1 1 3 3 1 1 4 6 4 1

  18. Canny Edge Detection • Computing the image derivatives Gx, Gy • Smoothing with a Gaussian. • Using simple derivative kernels. • Compute the edge direction: • Take only the local maxima in that direction (to get an edge with width 1) • Hysteresis: Edge linking with two thresholds • Q.: What will be the width of the Gaussian?

  19. Example Original Canny

More Related