Methodology for Computer Measurement of Pulmonary Function Curves