summaryrefslogtreecommitdiff
path: root/src/calibration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/calibration.cpp')
-rw-r--r--src/calibration.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/calibration.cpp b/src/calibration.cpp
index 41e6270..3462565 100644
--- a/src/calibration.cpp
+++ b/src/calibration.cpp
@@ -1,5 +1,7 @@
#include "calibration.h"
+#include "fuck_intel.h"
+
#include <execution>
#include <iostream>
@@ -140,7 +142,7 @@ void interpolate(
qWarning() << "delta" << delta;
qWarning() << "c[left/i/right]" << c[left] << c[i] << c[right];
- exit(EXIT_FAILURE);
+ // exit(EXIT_FAILURE);
}
}
@@ -173,7 +175,8 @@ QImage calibrationTableToImage(
const auto& column = calibrationTable->at(colIdx);
for (size_t rowIdx = 0; rowIdx < column.size(); ++rowIdx) {
- bool hasValue = !qFuzzyIsNull(column.at(rowIdx));
+ const auto &v = column.at(rowIdx);
+ bool hasValue = !qFuzzyIsNull(v);
notNull += int(hasValue);
@@ -204,14 +207,14 @@ QList<Pixels> filter(
Pixels sum = *it;
size_t count{1};
- qDebug() << "\t" << __func__ << "enc pos:" << it->counters.encoderPosition;
+ // qDebug() << "\t" << __func__ << "enc pos:" << it->counters.encoderPosition;
++it;
while (it != rawProfiles.constEnd()
&& it->counters.encoderPosition == sum.counters.encoderPosition) {
sum += *it;
++count;
- qDebug() << "\t\t" << __func__ << "enc pos:" << it->counters.encoderPosition;
+ // qDebug() << "\t\t" << __func__ << "enc pos:" << it->counters.encoderPosition;
++it;
}