![]() ![]() Make sure that the curves are already rebalanced and have scale and translation normalized before using this function. It should be noted that this may give odd results if the 2 curves don't have a relatively similar shape to each other. There's also a function provided called procrustesNormalizeRotation to help normalize rotation using Procrustes analysis. The sequel to our popular swap and match game Shape Matcher has arrived Once again youll have lots of challenging levels to complete, as you line up the gem stones and break the grey and black blocks and chains. The core of curve-matcher is a function called shapeSimilarity which estimates how similar the shapes of 2 curves are to each other, returning a value between 0 and 1.Ĭurves are defined as arrays of points of x and y like below: const curve = [ from 'curve-matcher' Ĭonst balancedCurve = rebalanceCurve(curve) Ĭonst scaledAndTranslatedCurve = procrustesNormalizeCurve(balancedCurve) Or npm install curve-matcher Getting started InstallationĬurve matcher can be installed via NPM or Yarn yarn add curve-matcher A Javascript library for doing curve matching with Fréchet distance and Procrustes analysis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |