Automatic lung segmentation in functional SPECT images using active shape models trained on reference lung shapes from CT