Methods for post-processing raw detector signals of an x-ray or gamma detector are disclosed. According to at least one embodiment of the invention, raw detector signals are filtered, an associated filtered signal is determined at least for a subset of the raw detector signals, and those filtered signals whose signal value is less than zero are then respectively replaced by a signal value greater than zero.