53 lines
1020 B
C++
53 lines
1020 B
C++
/*#include <Magick++.h>
|
|
#include <iostream>
|
|
#include <bitset>
|
|
#include <climits>
|
|
|
|
#include <boost/filesystem/fstream.hpp>
|
|
#include <string>*/
|
|
|
|
#include "DescriptorManager.h"
|
|
#include <boost/filesystem.hpp>
|
|
#include <Magick++.h>
|
|
using namespace std;
|
|
using namespace Magick;
|
|
|
|
//Methods:
|
|
//6 DCT Pearson
|
|
//5 threshold
|
|
//4 pearson
|
|
//3 sobel
|
|
//2 median
|
|
//1 numColors
|
|
//0 averageColor
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
string imagename = "spook.jpg";
|
|
int method = 6;
|
|
int count = 1000;
|
|
if (argc > 2) {
|
|
method = atoi(argv[2]);
|
|
imagename = argv[1];
|
|
}
|
|
if (argc > 3) {
|
|
count = atoi(argv[3]);
|
|
}
|
|
|
|
else {
|
|
cout << "Usage: " << endl << argv[0] << " [fileName] [methodIndex]" << endl;
|
|
cout << "Continuing.." << endl;
|
|
}
|
|
InitializeMagick(*argv);
|
|
DescriptorManager* manager = new DescriptorManager("test");
|
|
//smanager->generatePreviews(imagename);
|
|
//cout << "Intializing..." << endl;
|
|
manager->Init();
|
|
cout << endl;
|
|
manager->outputMap();
|
|
//cout << "done!" << endl;
|
|
// manager->runExperiments();
|
|
|
|
return 0;
|
|
}
|