Segmentation of vertebral bones in computed tomographic data is important as a first stage of image-based radiological tasks. However, it is a challenging problem to segment an affected spine correctly. In this study, we propose a new method of segmentation of thoracic and lumbar vertebral bodies from thin-slice computed tomographic images. Especially, we focus on a deformable model-based segmentation scheme to confirm the feasibility in clinical data sets with various bone diseases, such as bone metastases and scoliosis. As an application of this algorithm, virtual straightening of the thoracolumbar spine is also performed. Results on a database of 16 patients indicate the applicability of our method to spines affected by scoliosis and multiple bone metastases.