Add histogram

This commit is contained in:
2023-11-13 21:12:23 +01:00
parent 0a803ace10
commit 46b0210078
7 changed files with 122 additions and 1 deletions
+3
View File
@@ -197,6 +197,9 @@ void calcStats(const T *data, size_t n, RawImage::Stats &stats)
stats.m_mad[i] /= 65535.0;
}
}
for(size_t i = 0; i < ch; i++)
stats.m_histogram[i] = std::vector<uint32_t>(histogram[i], histogram[i] + histSize);
}
void RawImage::calcStats()