Skip to content

antimatter15/2d-thin-plate-spline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2d-thin-plate-spline

javascript thin plate spline in 2d

var tps = require('./index.js')


// source coordinates
var P = [[0, 0], [0, 10], [10, 0]]
// target coordinates
var Q = [[50, 50], [50, 60], [60, 50]]

// returns a function interpolating (x, y) => [x', y']
var project = tps(P, Q)

console.log(project(0, 5)) // [ 50, 55 ]

About

javascript thin plate spline in 2d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published