| 85 | } |
| 86 | |
| 87 | void 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 | |
| 106 | const mitk::PointSet *mitk::PlaneFit::GetInput() |
| 107 | { |