Prediction of the properties of sawn timber by visual inspection of sawlogs