How to map a point onto a warped grid

前端 未结 4 1519
青春惊慌失措
青春惊慌失措 2020-12-16 17:51

Say you have a collection of points with coordinates on a Cartesian coordinate system.

\"an

4条回答
  •  我在风中等你
    2020-12-16 18:30

    A lot depends on how many existing points you have. If you have only one, there's not really much you can do with it -- you can offset the second point by the same amount in the same direction, but you don't have enough data to really do any better than that.

    If you have a fair number of existing points, you can do a surface fit through those points, and use that to approximate the proper position of the new point. Given N points, you can always get a perfect fit using an order N polynomial, but you rarely want to do that -- instead, you usually guess that the stretch function is a fairly low-order function (e.g. quadratic or cubic) and fit a surface to the points on that basis. You then place your new point based on the function for your fitted surface.

提交回复
热议问题