1. An imaging system comprising: a two-dimensional detector having a plurality of cells wherein each cell is configured to detect energy passing through an object; and a computer programmed to: acquire imaging data for the plurality of cells; identify a cell to be corrected, based on the imaging data; calculate a weighted average of at least two cells that are adjacent to the identified cell; and correct the identified cell using the calculated weighted average.