Dear Luca, the dummy script procedure worked fine!
Thank you very much! Lucia On Jul 11, 2011, at 8:20 AM, Luca Antiga wrote: > Dear Lucia, > in fact the script only outputs the vtkMatrix4x4 VTK object, which is meant > to be used by other scripts, but not really to be ispected visually. > I now added this possibility in the git repository, however you might be > running the 0.9 release, in which case you need something different. > > There are a few ways in which you can access the matrix elements, for > instance you could use a dummy script. Find it attached: just place it in > your working directory and go > > vmtkicpregistration -ifile surface1.vtp -rfile surface2.vtp --pipe vmtkdummy > > If there are no python import issues, you should see the matrix being printed > at the console. > > Other ways involve using vmtk scripts from Python (see the advanced pype > tutorial) or simply modifying the vmtkicpregistration.py file in your > lib/vmtk/vmtk install directory and adding a > print self.Matrix4x4 > statement at the end of the Execute method. > > Hope this helps. > > Best regards > > > Luca > > <vmtkdummy.py> > > > On Jul 9, 2011, at 3:09 PM, Lucia Mirabella wrote: > >> Hi All, >> >> I'm using vmtkicpregistration script to register two stl surfaces. I would >> like also to get the matrix used for the registration as output, but I'm not >> sure how to do that. How can I print the output member Matrix4x4? >> >> I tried with -omatrix4x4 matrix.vtk, but I got the following error: >> >> vmtkicpregistration error: unknown option -omatrix4x4 >> >> even if -omatrix4x4 appears in the help. >> >> Can you please help me in solving this issue? >> >> Thanks!! >> >> Lucia >> >> __________________________________________________ >> >> Postdoctoral Fellow, Cardiovascular Fluid Mechanics Laboratory >> Wallace H. Coulter Department of Biomedical Engineering >> Georgia Institute of Technology >> 315 Ferst Drive NW, Parker H. Petit Biotechnology Building >> Atlanta, GA 30332-0363 >> E-mail: lucia.mirabe...@bme.gatech.edu >> >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> vmtk-users mailing list >> vmtk-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/vmtk-users > __________________________________________________ Postdoctoral Fellow, Cardiovascular Fluid Mechanics Laboratory Wallace H. Coulter Department of Biomedical Engineering Georgia Institute of Technology 315 Ferst Drive NW, Parker H. Petit Biotechnology Building Atlanta, GA 30332-0363 E-mail: lucia.mirabe...@bme.gatech.edu ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users