MATLAB: I want to separate spine from MRI or CT scan image

Image Processing Toolboximage segmentation

I want separate/extract the spine from an MRI image or CT scan of back spine to find the angle of vertebra curve to determine scoliosis by image processing.