Cardiac CT and MRI can be used to evaluate the heart and coronary arteries. Cardiac CT uses calcium scoring to detect calcifications and assess risk of heart events. Coronary CT angiography uses contrast injection and ECG-gating to obtain images of the coronary arteries and detect stenoses. Retrospective and prospective ECG-gating techniques are used to optimize image quality while reducing radiation dose. Cardiac MRI provides better soft tissue definition than CT but poorer coronary artery imaging. It uses dark blood spin echo sequences and white blood gradient echo sequences to obtain anatomical and functional images of the heart without radiation.