Novel and advantageous methods and systems for performing spectral computed tomography are provided. An edge-on detector, such as a silicon strip detector, can be used to receive X-rays after passing through a sample to be imaged. An energy resolving process can be performed on the collected X-ray radiation. The CT scanner can have third-generation or fourth-generation geometry.