At first, characteristic curves should be preprocessed, because the number of stroke points is not necessarily the same between original strokes and target ones. Therefore, we resample for the target stroke to make its point number
be the same with that of the original stroke.