Differentiation and Convolution Finite Differences

Differentiation and Convolution Finite Differences

Differentiation and convolution • Recall • We could approximate this as ∂f f (x + ε, y) f (x, y) ∂ − = lim − f f( xn+1, y) f( xn , y) ε→0 ≈ ∂x ε ε ∂x ∆x • Now this is linear and shift (which is obviously a convolution; invariant, so must be the result it’s not a very good way to do of a convolution. things, as we shall see) Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Finite differences Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 1 Finite differences and noise • Finite difference filters respond • What is to be done? strongly to noise – intuitively, most pixels in – obvious reason: image noise images look quite a lot like results in pixels that look very their neighbours different from their neighbours – this is true even at an edge; • Generally, the larger the noise along the edge they’re similar, the stronger the response across the edge they’re not – suggests that smoothing the image should help, by forcing pixels different to their neighbours (=noise pixels?) to look more like neighbours Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Finite differences responding to noise Increasing noise -> (this is zero mean additive gaussian noise) Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 2 Smoothing and Differentiation • Issue: noise – smooth before differentiation – two convolutions to smooth, then differentiate? – actually, no - we can use a derivative of Gaussian filter • because differentiation is convolution, and convolution is associative Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 1 pixel 3 pixels 7 pixels The scale of the smoothing filter affects derivative estimates, and also the semantics of the edges recovered. Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 3 Filters are templates • Applying a filter at some point • Insight can be seen as taking a dot- – filters look like the effects they product between the image and are intended to find some vector – filters find effects they look • Filtering the image is a set of like dot products Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Normalized correlation • Think of filters of a dot product • Tricks: – now measure the angle – ensure that filter has a zero – i.e normalised correlation response to a constant region output is filter output, divided (helps reduce response to by root sum of squares of irrelevant background) values over which filter lies – subtract image average when computing the normalizing constant (i.e. subtract the image mean in the neighbourhood) – absolute value deals with contrast reversal Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 4 Positive responses Zero mean image, -1:1 scale Zero mean image, -max:max scale Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth Positive responses Zero mean image, -1:1 scale Zero mean image, -max:max scale Computer Vision - A Modern Approach Set: Linear Filters Slides by D.A. Forsyth 5.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us