D3.js Contour
D3.js allows you to compute contour polygons by applying a marhcing squares algorithm to a rectangular grid of numeric values (matrix).
I was going to use d3.js contours to create a contour map for the densitry of red, green, or blue values at a certain pixel given an image, but I decided to not do that and just do pixel manipulation instead.