PLearn 0.1
Functions
icp_test.cc File Reference
#include "icpalign.h"
Include dependency graph for icp_test.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 4 of file icp_test.cc.

References align(), PLearn::endl(), i, j, PLearn::TMat< T >::length(), and PLearn::TMat< T >::width().

                                  {

    if (argc < 3) {cout<< "error , provide model and scene name" ; return 0 ; }
    
    string name1 = string(argv[1]) + ".vrml" ; 
    string name2 = string(argv[2]) + ".vrml" ;
    
    PMolecule m1 , m2 ;  
    m1 = Molecule::readMolecule(string(argv[1])) ; 
    m2 = Molecule::readMolecule(string(argv[2])) ; 
    
    Mat wm ; 
    ::align(name1,m1->chem ,name2,m2->chem,wm)  ; 
    
    for(int i=0 ; i<wm.length() ; ++i) { 
        for(int j=0 ; j<wm.width() ; ++j) { 
            if (wm[i][j] > 0.5)
                cout << i+1 << " " << j+1 << endl ; 
        }

    }

}

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines