Files
004_comission/vinniesniper-54816/task1/from_client/MM Project (VS2022)/Demo/Demo/main.cpp
louiscklaw a2fb071e10 update,
2025-01-31 22:23:19 +08:00

31 lines
573 B
C++

#include <iostream>
#include "retrieval.h"
#include "sift.h"
using namespace std;
void run(int argc, char** argv) {
cout << "1: Image retrieval demo" << endl;
cout << "2: SIFT demo" << endl;
cout << "Type in the number to choose a demo and type enter to confirm" << endl;
int number;
cin >> number;
if (number == 1) {
retrival(argc, argv);
}
else if (number == 2) {
sift(argc, argv);
}
else {
cout << "Invalid input" << number << endl;
}
}
int main(int argc, char** argv)
{
while (1) {
run(argc, argv);
}
return 0;
}