Automatic Assessment Of Spinal Deformities In 2D And 3D