The computed tomography technique cannot easily be extended to diffraction enhanced imaging (DEI) because, while from DEI we may extract the refractive index gradient in one dimension, from the conventional CT reconstruction algorithm we may reconstruct only a scalar quantity. However, recently we showed that changing the direction of the scan axis, and collecting a set of data related to the three-dimensional distribution of the refractive index gradient of the sample, a CT image was obtained. The algorithm we used is based on the conventional CT algorithm but with a specific pre-processing of the projection data. The mathematical framework of the procedure and a simple CT experiment are presented and discussed.