#include #include #include "SLList.hpp" void usage(char** argv) { std::cout << "usage : " << argv[0] << " json1 json2 image" << std::endl; } int main(int argc, char** argv) { if(argc!=4) { usage(argv); return EXIT_FAILURE; } std::string fichier1 = argv[1]; std::string fichier2 = argv[2]; SLList sll1(fichier1); SLList sll2(fichier2); QImage img(argv[3]); std::pair resultat = sll1.distance_avg(&sll2, &img); std::cout << "( " << resultat.first << " , " << resultat.second << " )" << std::endl; //resultat = sll1.distance_hausdorff(&sll2, &img); //std::cout << "( " << resultat.first << " , " << resultat.second << " )" << std::endl; }