Disclosed herein is a method comprising: obtaining a signal at a pixel in an array of pixels of a radiation detector, wherein the signal is generated from radiation incident on the radiation detector; obtaining a corrected signal by correcting the signal with a combination of a set of reference signals generated from the radiation at a set of reference pixels in the array, wherein a set of weights are respectively applied to the set of reference signals in the combination; and forming an image based on the corrected signal; wherein the set of weights is a function of a location of the pixel with respect to the array.本發明公開一種方法,其包括:在輻射檢測器的像素陣列中的像素處獲得信號,其中所述信號產生自入射在所述輻射檢測器上的輻射;通過利用在所述像素陣列中的一組參考像素處從所述輻射產生的一組參考信號的組合來校正所述信號而獲得校正信號,其中一組權重被分別應用於所述組合中的所述參考信號組;並基於所述校正信號形成圖像;其中所述權重組是所述像素相對於所述像素陣列的位置的函數。