Reconstruction of incident X-ray spectra using the Medipix2 detector | IEEE Conference Publication | IEEE Xplore