Automatic evaluation of stroke slope