title: Selecting the pixels with highest intensity in OpenCV
body: <p>Can anyone help me to find out the top 1% (or say top 100 pixels)brightest pixels with their locations of a gray image in opencv.  because cvMinMaxLoc() gives only brightest pixel location. </p>
  
  <p>Any help is greatly appreciated.</p>