Example for generating a synthetic plane
- Author
- MIP
#include <iostream>
#include <Utils/GenGroundTruth.hh>
#include <Base/Geometry/HomgPoint3D.hh>
using namespace std;
using namespace BIAS;
int main()
{
vector<HomgPoint3D> ScenePoints1;
vector<HomgPoint3D> ScenePoints2;
GenGroundTruth::GenerateRandomPlane(ScenePoints1);
GenGroundTruth::GenerateRandomPlane(ScenePoints2, 100,
0.0, 0.0, 0.0,
1.0, 1.0, 0.0,
1.0, 0.0, 1.0,
150.0, 50.0);
unsigned int i;
cout << "Points in scene 1:" << endl;
for (i=0;i<ScenePoints1.size();i++)
cout << ScenePoints1[i] << endl;
cout << "\nPoints in scene 2:" << endl;
for (i=0;i<ScenePoints2.size();i++)
cout << ScenePoints2[i] << endl;
}