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