The present approach relates to self-calibration of CT detectors based on detected misalignment of the detector and X-ray source. The present approach make the detector more robust to changes against temperature and focal spot movements. The diagnostic image generated by energy resolving calibrated response signals is able to present enhanced features compared to conventional CT based diagnostic images.