Title: Automatic sorting of sawlogs by grade