35 std::cout <<
"Start PlaneFitTest " << std::endl;
36 for (
int position = 0; position < 6; position++)
40 PointSet->GetPointSet()->GetPoints()->InsertElement(position, Point);
44 PlaneFit->SetInput(PointSet);
47 std::cout <<
" Size test of Input Method: ";
48 if (testPointSet->
GetSize() == PointSet->GetSize())
50 std::cout <<
"[PASSED]" << std::endl;
54 std::cout <<
"[FAILED]" << std::endl;
59 std::cout <<
" Testing centroid calculaation: ";
63 expectedCentroid[0] = 2.5;
64 expectedCentroid[1] = 3.75;
65 expectedCentroid[2] = 2.5;
67 if (centroid == expectedCentroid)
69 std::cout <<
"[PASSED]" << std::endl;
73 std::cout <<
"[FAILED]" << std::endl;
78 std::cout <<
" Test PlaneGeometry: ";
82 std::cout <<
"[PASSED]" << std::endl;
86 std::cout <<
"[FAILED]" << std::endl;
90 std::cout <<
"[TEST DONE]" << std::endl;
virtual int GetSize(unsigned int t=0) const
returns the current size of the point-list
int mitkPlaneFitTest(int, char *[])
void FillVector3D(Tout &out, mitk::ScalarType x, mitk::ScalarType y, mitk::ScalarType z)
Data structure which stores a set of points. Superclass of mitk::Mesh.
Describes a two-dimensional, rectangular plane.