spatquant
quantizes the positions of a stream of photons
according to a gridding method. It acts as a filter, either
accumulating the input photons in bins and writing out a single photon
per bin, or changing the position of each incoming photon according to
the binning scheme and writing it out. It can also produce a two
dimensional image of the binned photons which can be output in a variety
of formats.