Rev 287 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef OPENNI_H
#define OPENNI_H
#include "GlobalDefines.h"
#include <QThread>
#include <XnOpenNI.h>
#include <XnLog.h>
#include <XnCppWrapper.h>
#include <XnFPSCalculator.h>
#define CONFIG_XML_PATH "./SensorConfig.xml"
#define CONFIG_XML_PATH_LOCAL "SensorConfig.xml"
class OpenNI : public QThread {
Q_OBJECT
public:
OpenNI(QObject *parent = 0);
~OpenNI();
void run();
signals:
void sensorConnected();
void setStatusString(const QString &);
void setFrameString(const QString &);
void setFPSString(const QString &);
void processDepthData(const cv::Mat &);
void setFOV(float width, float height);
private:
XnBool fileExists(const char *fn);
};
#endif // OPENNI_H