A New Approach for Perceptually-based Fitting Strokes into Straight Segments