12-12-2011 09:31 AM
Hello, I was hoping someone could help me with my current problem. I have two sets of 2D Cartesian coordinates. The first set gives the locations of points in a regular grid. The second set gives locations of points in a distorted grid - it may be offset, rotated, skewed etc compared to the regular grid.
If the points in the two data sets match up (i.e. the first point in the distorted grid corresponds to the first point in the regular grid), how could I map between the two data sets?
The ultimate aim is to be able to determine which four known points from the distorted data set surround an arbitrary point, and then use the mapping between the distorted and regular points to transform the coordinates for that arbitrary point into the regular coordinate system.
I just can't figure out how to do the mapping, I've tried using a Labview program that used the solve linear equations VI but that was treating the x and y coordinates as independent and it failed to map properly if, for example, a square in the regular grid was a trapezium in the distorted grid.
Does anyone have any ideas on how to solve this?
Thanks in advance,
12-12-2011 02:32 PM
Ok, I think I have this working. The transformation is described in the fourth post here (click) if anyone else needs it.