[vtkusers] Unexpected results with ICP transform. Bug?
Jérôme
jerome.velut at gmail.com
Thu Jun 30 08:28:16 EDT 2011
I just tried your python script, with 2 identical spheres as ICP source and
target. The result is as expected :
--------------------------------------------
Rotation around the X-axis: 0.0
Rotation around the Y-axis: -0.0
Rotation around the Z-axis: 0.0
Translation along the X-axis: 0.0
Translation along the Y-axis: 0.0
Translation along the Z-axis: 0.0
-----------------------------------------------
If I move the 2nd sphere by setting its center to (0.1,0.2,0), I also got
the expected result :
------------------------------------------------
Rotation around the X-axis: -0.0
Rotation around the Y-axis: -0.0
Rotation around the Z-axis: 0.0
Translation along the X-axis: -0.1
Translation along the Y-axis: -0.2
Translation along the Z-axis: 0.0
-------------------------------------------------
I am sorry to not being of more help.
Jerome
2011/6/30 Jérôme <jerome.velut at gmail.com>
> Hi,
> Not for sure, but I think that there is a vtkTransform::Update( ) function,
> such as for the vtkAlgorithm.
>
> HTH
> Jerome
>
>
> 2011/6/30 Christopher Denter <dennda at the-space-station.com>
>
>> *Bump*
>>
>> No ideas? Still trying to find a solution.
>>
>>
>> On Jun 12, 2011, at 3:35 PM, Christopher Denter wrote:
>>
>> > Hello there,
>> >
>> > I'm trying to help a friend fix a script and am a little confused as to
>> the results of the ICP transform.
>> > For testing purposes, I passed in the exact same dataset twice. I
>> expected to receive something like an identity matrix back, but I get
>> seemingly random (but reproducible) values back instead.
>> > Here's the part of the script that uses the ICP transform and some of
>> the output:
>> > http://paste.pocoo.org/show/404964/
>> >
>> > The ultimate goal would be to extract the best rotation / translation
>> components from the matrix resulting from the ICP algorithm in order to know
>> how to rotate/translate one object to best put it in place of the other.
>> > I'm dealing with a bunch of vtkPolyData objects.
>> >
>> > Any help is appreciated.
>> >
>> >
>> > Thanks,
>> > Christopher
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110630/9844cff0/attachment.htm>
More information about the vtkusers
mailing list