[vtkusers] ICP with Point Cloud

samo sandra.moritz at gmx.de
Fri May 25 11:33:00 EDT 2007



Thanks Tim for your fast answer. I will try your sugestion!

Sandra



Tim Hutton wrote:
> 
> Hi Sandra,
> 
> Try making a vtkPolyData, with a vertex for each point. This is easily
> achieved using polydata->SetPoints(points) and a call to
> polydata->InsertNextCell(VTK_VERTEX,1,&i) for each point index i. You
> may need a polydata->Allocate() beforehand.
> 
> Tim
> 
> On 25/05/07, samo <sandra.moritz at gmx.de> wrote:
>>
>>
>> Hello together
>>
>> I try to match a point cloud with a surface with the help of
>> vtkIterativeClosestPointAlgorithm. What I would like to know is, whether
>> and
>> how I can use a point cloud in vtk. At the moment, I am using the
>> vtkPoints
>> array to store all the points in. But when I want to use the icp, I need
>> a
>> vtkDataSet. But, as I understood, the vtkDataSet always needs the cell
>> information. Is that right? I tried to use vtkUnstructuredGrid with only
>> setting points and no cells. But the icp calculated no transformation. Is
>> there a possiblility to use the icp without the cell information? As, in
>> my
>> point cloud, I don't know how the points are organized. I just would like
>> to
>> calculate a transformation from the point cloud to the surface. The icp
>> which I know from maths, is able to do that.
>>
>> Has anybody an idea?
>> --
>> View this message in context:
>> http://www.nabble.com/ICP-with-Point-Cloud-tf3816487.html#a10804257
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
> 
> 
> -- 
> Tim Hutton - http://www.sq3.org.uk
> 
> Take the Organic Builder challenge -
> http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://www.nabble.com/ICP-with-Point-Cloud-tf3816487.html#a10805377
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list