Adds DCTMedian
Probably DCT Average would work better..
This commit is contained in:
@@ -10,6 +10,7 @@ DescriptorManager::DescriptorManager(const fs::path & image_path) {
|
||||
img_path = image_path;
|
||||
|
||||
//Manual definitions.. SAD!
|
||||
descriptor_types[7] = new DCTMedian();
|
||||
descriptor_types[6] = new DCTPearson();
|
||||
descriptor_types[5] = new threshold();
|
||||
descriptor_types[4] = new pearson();
|
||||
@@ -122,7 +123,7 @@ void DescriptorManager::similarImages(string image_name, int method, int numImag
|
||||
//can be called directly or is called by its overload
|
||||
//assumes a < numDescriptors
|
||||
void DescriptorManager::outputMap(int a) {
|
||||
if (a != 6) return;
|
||||
if (a != 7) return;
|
||||
cout << "Outputting map " << descriptor_types[a]->ToString() << endl;
|
||||
map<string, bitset<64>> a_map = descriptors[a];
|
||||
if (a_map.begin() == a_map.end()) {
|
||||
|
||||
Reference in New Issue
Block a user