本文整理汇总了C++中mitk::pointset::Pointer::GetPointSet方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::GetPointSet方法的具体用法?C++ Pointer::GetPointSet怎么用?C++ Pointer::GetPointSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mitk::pointset::Pointer
的用法示例。
在下文中一共展示了Pointer::GetPointSet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: itkExceptionMacro
void mitk::NavigationDataReferenceTransformFilter::SetTargetLandmarks(mitk::PointSet::Pointer targetPointSet)
{
m_OneSourceRegistration = false;
m_ReferenceRegistration = false;
m_TargetPoints.clear();
TransformInitializerType::LandmarkPointType lPoint;
for (mitk::PointSet::PointsContainer::ConstIterator it = targetPointSet->GetPointSet()->GetPoints()->Begin();
it != targetPointSet->GetPointSet()->GetPoints()->End(); it++)
{
mitk::FillVector3D(lPoint, it->Value().GetElement(0), it->Value().GetElement(1), it->Value().GetElement(2));
m_TargetPoints.push_back(lPoint);
}
if(m_TargetPoints.size() < 1)
{
itkExceptionMacro("TargetPointSet must contain at least 1 point");
}
if(this->IsInitialized())
this->UpdateLandmarkTransform(m_SourcePoints, m_TargetPoints);
}
示例2: ConvertPointToString
std::string mitk::NavigationToolWriter::ConvertPointSetToString(mitk::PointSet::Pointer pointSet)
{
std::stringstream returnValue;
mitk::PointSet::PointDataIterator it;
for ( it = pointSet->GetPointSet()->GetPointData()->Begin();it != pointSet->GetPointSet()->GetPointData()->End();it++ )
{
mitk::Point3D thisPoint = pointSet->GetPoint(it->Index());
returnValue << it->Index() << ";" << ConvertPointToString(thisPoint) << "|";
}
return returnValue.str();
}
示例3: itkExceptionMacro
void mitk::NavigationDataLandmarkTransformFilter::SetTargetLandmarks(mitk::PointSet::Pointer mitkTargetPointSet)
{
m_TargetPoints.clear();
TransformInitializerType::LandmarkPointType lPoint;
for (mitk::PointSet::PointsContainer::ConstIterator it = mitkTargetPointSet->GetPointSet()->GetPoints()->Begin();
it != mitkTargetPointSet->GetPointSet()->GetPoints()->End(); ++it)
{
mitk::FillVector3D(lPoint, it->Value().GetElement(0), it->Value().GetElement(1), it->Value().GetElement(2));
m_TargetPoints.push_back(lPoint);
}
if (m_TargetPoints.size() < 3)
{
itkExceptionMacro("TargetPointSet must contain at least 3 points");
}
if (this->IsInitialized())
this->InitializeLandmarkTransform(m_SourcePoints, m_TargetPoints);
}