[Insight-users] SetFixedPointSet
tony hakki
tony2007vtk at yahoo.com
Fri Feb 23 12:09:45 EST 2007
Hello ;
I solved my problem ,please don't make sense this problem
thanks
----- Original Message ----
From: tony hakki <tony2007vtk at yahoo.com>
To: insight-users at itk.org
Sent: Friday, February 23, 2007 3:57:21 PM
Subject: [Insight-users] SetFixedPointSet
Hi Dear ITK users;
I would like to renew my problem. Briefly; I have mesh variable which is generated from a stl polydata . First I read my STL data with VTK then I converted it to itk mesh format to implement a pointsettoimageregistration. I would like to use that mesh as a fixedpointset. But I haven't accomplished it yet. I tried the following ways ,unfortunately I couldn't achieved ,If somebody suggest me a different way it will be really appreciated. Thank you very much
TOny
I tried 4 diffrent ways but :(
1-registrationMethod->SetFixedPointSet(mesh);
2- typedef PointSetType::PointsContainer PointsContainer;
PointsContainer::Pointer pointsContainer = PointsContainer::New();
pointsContainer = mesh->GetPoints();
itk::PointSet<float, 3>::Pointer pointSet = itk::PointSet<float,3>::New();
pointSet->SetPoints(pointsContainer);
registrationMethod->SetFixedPointSet(pointSet);
3-registrationMethod->SetFixedPointSet(mesh->GetPoints())
4-// Declare the type for PointsContainer
typedef MeshType::PointsContainer PointsContainerType;
// Declare the type for PointsContainerPointer
typedef MeshType::PointsContainerPointer PointsContainerPointer;
// Declare the type for Points
typedef MeshType::PointType PointType;
PointsContainerPointer points = mesh->GetPoints();
registrationMethod->SetFixedPointSet(points);
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070223/4ae68f8b/attachment.html
More information about the Insight-users
mailing list