A method is disclosed for homogenization of threshold values of a multichannel, quanta-counting radiation detector. In an embodiment of the method empty measurements are carried out with the detector at different spectral compositions of the radiation with different settings of threshold values of the comparators. For each channel of which the comparators is to be set to the same energy threshold, an adapted threshold value is determined for this energy threshold from the empty measurement, at which a variation of the normalized count rate of the channel is minimized over the different spectral compositions of the radiation. This avoids problems in the further processing of the measurement data of the detector, which can occur during alterations of the spectrum.