An Automatic Method for Lung Segmentation in Thin Slice Computed Tomography Based on Random Walks