sampling
v1.0.1
Published
linear and nearest-neighbour sampling utility
Downloads
12
Maintainers
Readme
Experimental package. Sampling functions for image and noise manipulation.
Currently all samples wrap around edges.
e.g.
var bilinear = require('sampling').bilinear;
var nearest = require('sampling').nearest;
//returns the bilinear float
var N = bilinear(data, width, height, x, y);
//nearest neighbour sample
var v = nearest(data, width, height, x, y);