[Insight-users] How to convert set of points from PolylineParametricPath to PointSet type

Raviteja, Allaparthi Allaparthi.Raviteja at philips.com
Tue Nov 13 07:55:42 EST 2012


Hi,
I want to convert set of points from PolylineParametricPath to PointSet type

itk::PolyLineParametricPath< 2 >::Pointer simplifiedPath = itk::PolyLineParametricPath< 2 >::New();

std::cout << "There are " << simplifiedPath->GetVertexList()->Size() << " points on the simplified path." << std::endl;

typedef itk::Vector< float, 1 > DataType;

typedef itk::PointSet< DataType, DataDimension >   PointSetType2;
PointSetType2::Pointer pointSet2 = PointSetType2::New();
PointSetType2::PointType simplifiedPathPoints;


How do I resolve this?
Thank you,
Ravi.

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121113/b8476b4c/attachment.htm>


More information about the Insight-users mailing list