MCPcopy Create free account
hub / github.com/MITK/MITK / SetInput

Method SetInput

Modules/AlgorithmsExt/src/mitkPlaneFit.cpp:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void mitk::PlaneFit::SetInput(const mitk::PointSet *pointSet)
88{
89 // Process object is not const-correct so the const_cast is required here
90 this->ProcessObject::SetNthInput(0, const_cast<mitk::PointSet *>(pointSet));
91
92 m_PointSet = pointSet;
93 unsigned int pointSetSize = pointSet->GetPointSetSeriesSize();
94
95 m_Planes.resize(pointSetSize);
96 m_Centroids.resize(pointSetSize);
97 m_PlaneVectors.resize(pointSetSize);
98
99 unsigned int t;
100 for (t = 0; t < pointSetSize; ++t)
101 {
102 m_Planes[t] = mitk::PlaneGeometry::New();
103 }
104}
105
106const mitk::PointSet *mitk::PlaneFit::GetInput()
107{

Calls 2

GetPointSetSeriesSizeMethod · 0.80
NewFunction · 0.50