Segmentation Of Cervical And Lumbar Vertebrae In X-Ray Images Using Active Appearance Models And Extensions