A unit with feedforward excitation and lateral inhibition approximates a second derivative filter. The signal enhancement and data compression go hand in hand: the unit filters out regions of constant and linearly varying signal intensities, while enhancing abrupt changes in the signal e.g. edges in images, or onset/offset of auditory or tactile stimuli.