Hi Manasi,
I checked and vmticpregistration version 0.9 (I'm looking at the precompiled
binary) does include -iterations.
In any case, you should be fine just setting a small -maxmeandistance,
iterations should be set automatically in an appropriate way, so you can just
skip the option for now.
Best regards
Luca
On Jun 8, 2011, at 2:31 AM, Ramachandran, Manasi wrote:
> Hi Luca
>
> I tried it in a machine where I am pretty certain VMTK was installed sometime
> early last year and I get the same error. Please let me know what I should
> do.
>
> Thanks
> Manasi
> From: Ramachandran, Manasi
> Sent: Tuesday, June 07, 2011 7:28 PM
> To: Luca Antiga
> Cc: vmtk-users@lists.sourceforge.net
> Subject: RE: [vmtk-users] Registration
>
> Hi Luca,
>
> I see that The help does not list -iterations:
>
> vmtkicpregistration : register a surface to a reference surface using
> the ICP algorithm
> Input arguments:
> -id Id (int,1); default=0: script id
> -handle Self (self,1): handle to self
> -disabled Disabled (bool,1); default=0: disable execution and
> piping
> -i Surface (vtkPolyData,1): the input surface
> -ifile SurfaceInputFileName (str,1): filename for the default
> Surface reader
> -r ReferenceSurface (vtkPolyData,1): the reference surface
> -rfile ReferenceSurfaceInputFileName (str,1): filename for the
> default ReferenceSurface reader
> -distancearray DistanceArrayName (str,1): name of the array where
> the distance of the input surface to the reference surface has to
> be stored
> -signeddistancearray SignedDistanceArrayName (str,1): name of the
> array where the signed distance of the input surface to the
> reference surface is stored; distance is positive if distance
> vector and normal to the reference surface have negative dot
> product, i.e. if the input surface is outer with respect to the
> reference surface
> -flipnormals FlipNormals (bool,1); default=0: flip normals to the
> reference surface after computing them
> -maxmeandistance MaximumMeanDistance (float,1); default=0.01:
> convergence threshold based on the maximum mean distance between
> the two surfaces
> -ofile SurfaceOutputFileName (str,1): filename for the default
> Surface writer
> Output arguments:
> -id Id (int,1); default=0: script id
> -handle Self (self,1): handle to self
> -o Surface (vtkPolyData,1): the output surface
> -omatrix4x4 Matrix4x4 (vtkMatrix4x4,1): the output transform matrix
>
> I will run it on a machine that VMTK was installed quite recently and let you
> know if it works.
>
> Thanks
> Manasi
> From: Luca Antiga [luca.ant...@orobix.com]
> Sent: Tuesday, June 07, 2011 5:07 PM
> To: Ramachandran, Manasi
> Cc: vmtk-users@lists.sourceforge.net
> Subject: Re: [vmtk-users] Registration
>
> Hi Manasi,
> this is odd, I added the -iterations option September 11 2009. Do you have
> an earlier version than that?
> Can you send me the output of vmtkicpregistration --help?
> Thanks
>
> Luca
>
>
> On Jun 7, 2011, at 6:49 PM, Ramachandran, Manasi wrote:
>
>> Hi Luca
>>
>> Thanks for the reply. I tried running:
>>
>> vmtkicpregistration -ifile source_surface.vtp -rfile target_surface.vtp
>> -ofile registered_surface.vtp -iterations 100 -maxmeandistance 0.01
>>
>> And I get the following error:
>>
>> Creating vmtkICPRegistration instance.
>> Automatic piping vmtkicpregistration
>> Parsing options vmtkicpregistration
>> vmtkicpregistration error: unknown option -iterations
>> vmtkicpregistration : register a surface to a reference surface using
>> the ICP algorithm
>> Input arguments:
>> -id Id (int,1); default=0: script id
>> ....
>>
>> I can't figure out why it will not recognize -iterations as an option.
>> Please let me know what you think.
>>
>> Thanks
>> Manasi
>> From: Luca Antiga [luca.ant...@orobix.com]
>> Sent: Tuesday, June 07, 2011 7:10 AM
>> To: Ramachandran, Manasi
>> Cc: vmtk-users@lists.sourceforge.net
>> Subject: Re: [vmtk-users] Registration
>>
>> Hi Manasi,
>> try with the vmtkicpregistration script. The amount of success you can have
>> with this filter can change according to the kind of registration you want
>> to perform, but at least it's a starting point:
>>
>> vmtkicpregistration -ifile source_surface.vtp -rfile target_surface.vtp
>> -ofile registered_surface.vtp -iterations 100 -maxmeandistance 0.01
>>
>> Increase the -iterations option to check that the registration has actually
>> converged, and use -maxmeandistance to tell the script what you mean by
>> "registered" (in terms of the maximum allowed mean distance between the
>> surface - if that value is lower than the option, the registration stops
>> regardless of the number iterations that are set).
>>
>> There is another useful option: -farthreshold (e.g. -farthreshold 0.2)
>> which tells the algorithm to ignore the pair of points that are far apart
>> more than 0.2 during the registration. It's useful for surfaces that have
>> parts that are similar (that you want to register) but others that differ
>> markedly.
>>
>> Hope this helps
>>
>> Luca
>>
>>
>> On Jun 6, 2011, at 11:40 PM, Ramachandran, Manasi wrote:
>>
>>> Hi All,
>>>
>>> Have any you registered models using vmtk? If so, can you tell me how to do
>>> it?
>>>
>>> I have 2 3D models (.vtp/.stl/.dat/.vti) and I want to register the 2
>>> models. Is it possible to do that on vmtk?
>>>
>>> Thanks
>>> Manasi
>>> ------------------------------------------------------------------------------
>>> EditLive Enterprise is the world's most technically advanced content
>>> authoring tool. Experience the power of Track Changes, Inline Image
>>> Editing and ensure content is compliant with Accessibility Checking.
>>> http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
>>> vmtk-users mailing list
>>> vmtk-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
>> vmtk-users mailing list
>> vmtk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users