A real-time two-dimensional moment generating algorithm and its single chip implementation | Synapse