Global feature extraction operations for near-sensor image processing | Synapse