A fully automatic and robust system for quantitative measurement of lumbar curvature