MCPcopy Create free account
hub / github.com/LuminanceHDR/LuminanceHDR / hueMean

Function hueMean

src/HdrWizard/AutoAntighosting.cpp:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137typedef vector<double> BufferF;
138
139inline float hueMean(const BufferF &data) {
140 return std::accumulate(data.begin(), data.end(), 0.0) / data.size();
141}
142
143void hueSquaredMean(const HdrCreationItemContainer &data, vector<float> &HE) {
144 size_t width = data[0].frame()->getWidth();

Callers 1

hueSquaredMeanFunction · 0.85

Calls 4

accumulateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected