In addition, Procrustes analysis sometimes doesn’t choose the best rotation if curves are not that similar to each other, so also tries 10 (by default) equally spaced rotations to make sure it picks the best possible rotation normalization. To help alleviate this, Curve matcher provides a helper method called which takes a curve and splits up line segments in the curve to improve the accuracy of the Fréchet distance calculation. This can be done with a function called as below:
Then, to normalize scale and translation, pass the curve into as below:
There’s also a function provided called to help normalize rotation using Procrustes analysis.