Automatic analysis of three-dimensional spine images : phd thesis