wip setup core

This commit is contained in:
djaidjai committed 2025-02-10 13:36:12 +01:00
1 parent 355448297c
commit 75f909c2f7
12 files changed
+57 -20

No files matched your search

File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
-10
View File
@@ -1,10 +0,0 @@
#pragma once
class ImageMatcher{
public:
private:
};
+18
View File
@@ -0,0 +1,18 @@
#include "Picker.h"
using namespace core;
Picker::Picker() {}
Picker::~Picker() {}
Colour Picker::match(Colour obj, Colour* picks) {
// TODO: matching code
return Colour(0.0f, 0.0f, 0.0f);
}
std::vector<Colour> match_multi(Colour* obj, Colour* picks) {
// TODO: idem ditto
return std::vector<Colour>();
}
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include "Colour.h"
#include <vector>
namespace core {
class Picker{
public:
Picker();
~Picker();
Colour match(Colour obj, Colour* picks);
std::vector<Colour> match_multi(Colour* obj, Colour* picks);
};
}
View File
Whitespace-only changes.
View File
Whitespace-only changes.
-10
View File
@@ -1,10 +0,0 @@
#pragma once
class ImageMatcher{
public:
private:
};
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#include "../Colour.h"
namespace core {
class Matcher {
public:
virtual float distance(const Colour a, const Colour b) ;
virtual float luminance(const Colour a) ;
};
}
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#include "Matcher.h"
namespace core {
class RGBMatcher : Matcher {
float distance(const Colour a, const Colour b);
float luminance(const Colour a);
};
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.