Shape-based defect classification for non de-structive testing