title: Detection of Blur in Images/Video sequences
body: <p>I had asked this on photo stackexchange but thought it might be relevant here as well, since I want to implement this programatically in my implementation.</p>
  
  <p>I am trying to implement a blur detection algorithm for my imaging pipeline. The blur that I want to detect is both -</p>
  
  <p>1) Camera Shake: Pictures captured using hand which moves/shakes when shutter speed is less.</p>
  
  <p>2) Lens focussing errors - (Depth of Field) issues, like focussing on a incorrect object causing some blur.</p>
  
  <p>3) Motion blur: Fast moving objects in the scene, captured using a not high enough shutter speed. E.g. A moving car a night might show a trail of its headlight/tail light in the image as a blur.</p>
  
  <p>How can one detect this blur and quantify it in some way to make some decision based on that computed 'blur metric'?</p>
  
  <p>What is the theory behind blur detection?</p>
  
  <p>I am looking of good reading material using which I can implement some algorithm for this in C/Matlab.</p>
  
  <p>thank you.</p>
  
  <p>-AD.</p>