Skip to content

PlaneFitting for underspecified planes does not necessarily return an xy-plane #4

Description

@chhtz

Example:

    PlaneFitting<float> pf1, pf2;
    pf1.update(Eigen::Vector3f(0,0,-1));
    std::cout << pf1.getCoeffs().transpose() << std::endl; // [0 0 -1], as expected
    pf2.update(Eigen::Vector3f(2,3,-1));
    std::cout << pf2.getCoeffs().transpose() << std::endl; // [0, -1/3, 0] 
         // which is a solution of smaller norm, but not as expected

As long as x and y coordinates have magnitude<1.0 the current implementation works. I'm not sure if this is worth addressing (but probably it should be pointed out in the documentation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions