title: How to get intensity of each pixel in image. I want to calculate higher intensity pixels in image
body: <p>I am doing image processing in my project so I need to calculate the intensity of each pixel.
  If it is greater than a threshold then keep it as it is, otherwise remove that pixel.</p>