medInria/medInria-public — pull request #104 by LoicCadour (2013-10-03 16:21:33+00:00)
Title: Improving DICOM import robustness

By trusting DICOM Tag for having spacing between slices, we had importing issues with some images (https://transfert.inria.fr/fichiers/62338fd517f0383b71a8c9b26a0a8788/godin.rar).
Thus, I changed the way we obtain spacing between slices before calculating sliceLocation.

So first, we fill the Dictionnary in with all the tags of the images (ReadHeader function).
Then, call DetermineSpacing
And finally calculate sliceLocations.

Feel free to test this PR with different DICOM images.