title: Color Matrix for Image Sharpening in android
body: <p>I have a class that uses a color matrix to add image effects on an ImageView. I have several color matrices for contrast,exposure,temperature and saturation.
  Ex:</p>
  
  <pre><code>public static Bitmap changeContrast(Bitmap bmp, float contrast)
  {
      ColorMatrix cm = new ColorMatrix(new float[]
              {
                      contrast, 0, 0, 0, 0,
                      0, contrast, 0, 0, 0,
                      0, 0, contrast, 0, 0,
                      0, 0, 0, 1, 0
              });
  
      return getBitmapFromColorMatrix(cm, bmp);
  }
  </code></pre>
  
  <p>Now my problem is, the sharpening of the image. There seems to be no color matrix for these. Please help.</p>
  
  <p>I tried sharpening the image using the code from <a href="http://shaikhhamadali.blogspot.com/2013/07/set-sharpness-of-image-in-imageview.html" rel="nofollow">here</a> but it takes too long to process and I do not know what valid values should be passed to the weight parameter of the <code>sharpenImage(Bitmap src, double weight)</code>  method.</p>