This forum has been archived. All content is frozen. Please use KDE Discuss instead.

computeFittingHyperplane

Tags: None
(comma "," separated)
adnan.haider@gmail.com
Registered Member
Posts
1
Karma
0

computeFittingHyperplane

Wed Jan 22, 2014 9:05 pm
Hello,

I have been trying to use the Eigen function computeFittingHyperplane as described here: http://eigen.tuxfamily.org/1/group__reg ... f0b6e72c53

Here is the relevant code that I am using:

Code: Select all
Eigen::Vector3d points[3];
points[0] = Eigen::Vector3d( 0, 0, 0 );
points[1] = Eigen::Vector3d( 0, 1, 0 );
points[2] = Eigen::Vector3d( 0, 0 , 1);
Eigen::Vector3d coeffs; // will store the coefficients a, b, c, d
Eigen::computeFittingHyperplane (3, points, &coeffs);
std::cout << " coeffs[0] :  " << coeffs[0] << std::endl;
std::cout << " coeffs[1] :  " << coeffs[1] << std::endl;
std::cout << " coeffs[2] :  " << coeffs[2] << std::endl;
std::cout << " coeffs[3] :  " << coeffs[3] << std::endl;


However the error that I get is:

'computeFittingHyperplane' : is not a member of 'Eigen'

I have been correctly including Matrix.h in my project (VS 2010), but I am not sure why this is the case? Can anyone please suggest if I am doing anything incorrectly?

Thanks!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: computeFittingHyperplane

Wed Jan 22, 2014 10:57 pm
hm, how did you get there? this is the documentation of the very old Eigen1. To fit hyperplanes, look at this tutorial, slides 97-99: http://downloads.tuxfamily.org/eigen/ei ... a_2013.pdf


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]