31 lines
573 B
C++
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;
|
|
} |