Add most dominant colour to image stats #640

This commit is contained in:
Lovell Fuller
2020-07-15 19:58:54 +01:00
parent dcc42f8514
commit c42de19d2a
10 changed files with 130 additions and 36 deletions

View File

@@ -48,6 +48,9 @@ struct StatsBaton {
bool isOpaque;
double entropy;
double sharpness;
int dominantRed;
int dominantGreen;
int dominantBlue;
std::string err;
@@ -55,7 +58,10 @@ struct StatsBaton {
input(nullptr),
isOpaque(true),
entropy(0.0),
sharpness(0.0)
sharpness(0.0),
dominantRed(0),
dominantGreen(0),
dominantBlue(0)
{}
};