Sensor-layer image compression based on the quantized cosine transform | Synapse