1

I have a set of control coordinates and a set of target coordinates and I need to figure out how to transform an image over that given set of coordinates. For eg: I want (0,0) of the new image to be (10,20) of the old image or (100, 75) of the new Image to be (40, 30) of the old Image. I dont know if it matters, but I am doing this through javascript.

4

1 回答 1

0

As promised, here is the library I coded to make this happen. It took a lot of research and looking around, but in the end it all paid off. The concept is called Affine Fit Transformation. More info can be found here: https://github.com/clockwork189/Affinity

于 2013-01-19T23:47:31.503 回答