WIP Mutations ranking

This commit is contained in:
Mark Hoekveen
2018-08-11 11:05:03 +02:00
parent 34ba693e1c
commit 1de3961ece
5 changed files with 82 additions and 32 deletions
+1
View File
@@ -94,6 +94,7 @@ public:
const Quantum *p = view.getConst(0, 0, n, m); //entire image
unsigned long long red = 0, green = 0, blue = 0;
float numpixels = (float)(n*m);
if (img->channels() < 3) return bitset<64>(0);
for (ssize_t j = 0; j < m; j++) {
for (ssize_t i = 0; i < n; i++) {
//LTR scanning