Since commit b00037b8, erosion size is not used anymore, as this step has been removed, and the end point detection now uses local thickness of strokes instead. (cherry picked from commit 3f58a385)