title: Single pixel event image processing in python
body: <p>I have had  a lonng term problem for proceccing a CCD image of a Xray source, It is attached here<a href="http://i.stack.imgur.com/zSND1.png" rel="nofollow">CCD image</a>
   Then after theresholding with an arbitrary value, the thing I need to do is to Subtract the multi-pixel events from the image. I also need to count the number of pixels which belongs to single pixels. </p>
  
  <p>*- By multi pixel I mean the pixels which has nonzero value in sorounding pixels.</p>
  
  <p>I have a code working by using PIL.Image.open() to read it in to a list and do the analysis pixel by pixel! but I'm looking for a standard image prcessing routin for a more reliable and better results. I will appriciate if you can give me how to do it.</p>
  
  <p>Cheers</p>