Segmentation and Estimation of Lung Structures for Ventilation and Perfusion Analysis