3D Least Squares Plane

后端 未结 9 2253
遥遥无期
遥遥无期 2020-11-27 13:56

What\'s the algorithm for computing a least squares plane in (x, y, z) space, given a set of 3D data points? In other words, if I had a bunch of points like (1, 2, 3), (4, 5

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 14:30

    All you'll have to do is to solve the system of equations.

    If those are your points: (1, 2, 3), (4, 5, 6), (7, 8, 9)

    That gives you the equations:

    3=a*1 + b*2 + c
    6=a*4 + b*5 + c
    9=a*7 + b*8 + c
    

    So your question actually should be: How do I solve a system of equations?

    Therefore I recommend reading this SO question.

    If I've misunderstood your question let us know.

    EDIT:

    Ignore my answer as you probably meant something else.

提交回复
热议问题