Initial Commit
Had to recreate repo because it was corrupted. FML.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
#include <bitset>
|
||||
#include <climits>
|
||||
#include <set>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/system/error_code.hpp>
|
||||
#include <boost/filesystem/fstream.hpp>
|
||||
|
||||
#include <Magick++.h>
|
||||
#include <string>
|
||||
#include "Descriptor.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Magick;
|
||||
|
||||
//ENUM_STRING(descriptorss, (totalColors)(averageColor)(numDescriptors))
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
//Manager class for
|
||||
class DescriptorManager {
|
||||
public:
|
||||
DescriptorManager();
|
||||
DescriptorManager(const fs::path & image_path);
|
||||
~DescriptorManager();
|
||||
bool loadDescriptors();
|
||||
void similarImages(string image_name, int method, int numImages);
|
||||
void outputMap(int a);
|
||||
void outputMap();
|
||||
private:
|
||||
static const int numDescriptors = 7; //TODO: automagically update this?
|
||||
map<string, bitset<64>> descriptors[numDescriptors]; //array of maps that will hold the descriptors
|
||||
fs::path img_path; //where the images are
|
||||
Descriptor* descriptor_types[numDescriptors];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user