imagepixelccdx-ray

Single pixel event image processing in python


I have had a lonng term problem for proceccing a CCD image of a Xray source, It is attached hereCCD image 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.

*- By multi pixel I mean the pixels which has nonzero value in sorounding pixels.

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.

Cheers


Solution

  • First of all I shall thanks @Mark Stechell for his hints and answers. Then I found my nswer by his hint about Hit-or-miss transformation. I found good information in wikipedia as : https://en.wikipedia.org/wiki/Hit-or-miss_transform

    then in Python there is a ready made function for this methode which works for me and also for other paterning applications. you will find everithing in below link, it is straigh forward and easy. http://docs.scipy.org/doc/scipy-0.15.1/reference/generated/scipy.ndimage.morphology.binary_hit_or_miss.html

    Cheers