Initial Pass Through Image¶
For each pixel above threshold the code looks to see if this is the highest making a first pass. in the box (n x n) surrounding the pixel. If this is the highest in the box, then the location is stored in a list of potential photons.
In addition to storing the location of potential photons, an image is formed with its value incremented by one for the box (n x n) around the pixel. This image initially starts with all values set to zero. After the images have been processed, this image can be used to find overlap between photon events. An example of such an image is shown in First pass image output
A graphical (flow chart) representation of the logic is shown in First pass through all images.
(top) Actual CCD image showing photon events. (bottom) Image output from first pass showing potential photon locations