Files
small-image-descriptors/DescriptorManager.h
T
Mark Hoekveen 8b4035eed1 Adds DCTMedian
Probably DCT Average would work better..
2018-06-30 15:36:07 +02:00

39 lines
980 B
C++

#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 = 8; //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];
};