title: Calculating sharpness of an image
body: <p>I found on the internet that laplacian method is quite good technique to compute the sharpness of a image. I was trying to implement it in opencv 2.4.10. How can I  get the sharpness measure after applying the Laplacian function? Below is the code:</p>
  
  <pre><code>Mat src_gray, dst;
  int kernel_size = 3;
  int scale = 1;
  int delta = 0;
  int ddepth = CV_16S;
  
  GaussianBlur( src, src, Size(3,3), 0, 0, BORDER_DEFAULT );
  
  /// Convert the image to grayscale
  cvtColor( src, src_gray, CV_RGB2GRAY );
  
  /// Apply Laplace function
  Mat abs_dst;
  
  Laplacian( src_gray, dst, ddepth, kernel_size, scale, delta, BORDER_DEFAULT );
  
  //compute sharpness
  ??
  </code></pre>
  
  <p>Can someone please guide me on this?</p>