An apparatus for correcting for an unwanted offset voltage from a pixel in an pixel array, comprising:
- an offset correction block for receiving a digital correctional value and outputting an analog correction signal, said offset correction block comprising a first signal cell and a first skew cell;
- and
- a sample-and-hold circuit, said sample-and-hold circuit further comprising a charge amplifier having a first input coupled to a first set of capacitors charged by an electrical signal produced by said pixel and a second input coupled to a second set of capacitors charged by the analog correction signal, and outputting a compensated signal as a linear function of the charge on said first and second sets of capacitors.