1234567891011121314151617181920212223242526 |
- #include <iostream>
- #include <QImage>
- #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<double, int> resultat = sll1.distance(&sll2, &img);
- std::cout << resultat.first << " , " << resultat.second << std::endl;
- }
|