diff --git a/src/ImageAcquisition.cpp b/src/ImageAcquisition.cpp index ac314f40dbc51a134272489eb5c220216df8f05c..7186870910880576d6513e3a8661b03b79a7a978 100644 --- a/src/ImageAcquisition.cpp +++ b/src/ImageAcquisition.cpp @@ -259,8 +259,6 @@ void ImageAcquisition::frameCallbackInternal(char *pixelBuffer, size_t input, do latestSlaveFrame.copyTo(entry.fieldFrame); slaveMutex.unlock(); - Scalar m = mean(entry.leftEyeFrame); - gIntensity = m[0]; entry.incIdx(); emit imageAcquisitionDone(entry); } diff --git a/src/ParallelPort.cpp b/src/ParallelPort.cpp index 1a4d6b78d8f06704f697749479499bf142f350e7..a5e059e433fb579d67fee56e7828c69e9056d94f 100644 --- a/src/ParallelPort.cpp +++ b/src/ParallelPort.cpp @@ -67,9 +67,11 @@ void ParallelPort::poll() return; if (log->is_open()) { - WORD wData = fpInp32(888); - //*log << gTimer.timestamp() << "\t" << wData << std::endl; - *log << gTimer.timestamp() << "," << wData << "," << gIntensity << std::endl; + if (hInpOutDll) { + WORD wData = fpInp32(888); + *log << gTimer.timestamp() << "\t" << wData << std::endl; + } + } } diff --git a/src/utils.cpp b/src/utils.cpp index ae189a0bb3fdaab4435ca50624fca3312761896e..4f189f4c91eb07639126283e107a04ef1a3d54aa 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -50,4 +50,3 @@ GlobalTimer gTimer; QString gBinaryPath = ""; QString gCurrentSubjectName = ""; QString gFileIndexStr = "0000"; -std::atomic gIntensity = 0; diff --git a/src/utils.h b/src/utils.h index c2fac6ebc6cbcd22dd81540f8e8e7158006fa33c..393dfdcd7a60a41910bf327b613cb471d6281405 100644 --- a/src/utils.h +++ b/src/utils.h @@ -23,7 +23,6 @@ void exitBanner(); extern QString gBinaryPath; extern QString gCurrentSubjectName; extern QString gFileIndexStr; -extern std::atomic gIntensity; extern GlobalTimer gTimer; // Only valid after first frame has been received! void logMessages(QtMsgType type, const QMessageLogContext &context, const QString &msg);