points. How can I simplify out noisy edges?
I have a bunch of ordered (x,y) pairs that make nice little polygons, but there're just too much data to be manageable. It'd be nice to average out some of the rougher bits into less points.
Most of the edges look like the
heaviside step function, a.k.a. someone walking city blocks. Checking (x
i+1,y
i+1) vs. (x
i-1,y
i-1) and the rest of the diagonals could work out, but I'd really be into a more elegant/general algorithmic solution.
Less importantly but possibly related, let's say I wanted to give these polygons smooth sides. Do I drop bezier curve after bezier curve? I also just met splines on wikipedia - should I just apply
this natural cubic spline curve algorithm with (x
1,y
1) = (x
n,y
n)?
I'm currently working on this in Ruby, if that matters, but am open to pretty much anything.
posted by fritley at 8:12 AM on March 31 [1 favorite has favorites]