diff --git a/ECTrainer2/Marker.cpp b/ECTrainer2/Marker.cpp index 70915ff..b85c106 100644 --- a/ECTrainer2/Marker.cpp +++ b/ECTrainer2/Marker.cpp @@ -83,6 +83,8 @@ cv::Mat gazeIe = h * gazeVe; double* pgazeIe = gazeIe.ptr(0); + if (*(pgazeIe + 2) == 0) return cv::Point2f(-1.F, -1.F); + float x = (float)(*pgazeIe / *(pgazeIe + 2)); float y = (float)(*(pgazeIe + 1) / *(pgazeIe + 2)); //std::cout << x << "," << y << std::endl; diff --git a/ECTrainer2/TobiiREST.h b/ECTrainer2/TobiiREST.h index 812d573..c55f682 100644 --- a/ECTrainer2/TobiiREST.h +++ b/ECTrainer2/TobiiREST.h @@ -12,7 +12,6 @@ utility::string_t _ProjectID; utility::string_t _ParticipantID; utility::string_t _CalibrationID; - //bool _CalibTrigger; int _BatteryLevel; // ���ڑ��� 999 DWORD _lastBatteryQuery; // �O��̃o�b�e���[���擾���� @@ -26,10 +25,10 @@ bool Routine(); public: - + // �R���X�g���N�^ TobiiREST(ECTrainer* pEct); + // ������ bool Init(); - //void StartCalibration() { - // _CalibTrigger = true; }; + // �o�b�e���[�c�ʎ擾 int GetBatteryLevel() { return _BatteryLevel; }; };