Subversion Repositories seema-scanner

Rev

Rev 137 | Blame | Last modification | View Log | RSS feed

#ifndef SMTYPES_H
#define SMTYPES_H

#include <opencv2/opencv.hpp>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <QString>

struct SMCalibrationSet {
    // frames. if one channel it is BG Bayer. if three it is color.
    cv::Mat frame0;
    cv::Mat frame1;
    int id;
    float rotationAngle;
    bool checked;
    cv::Mat frame0Result;
    cv::Mat frame1Result;
    SMCalibrationSet(): id(-1), rotationAngle(0), checked(false){}
};


struct SMFrameSequence {
    // raw bayer frames
    std::vector<cv::Mat> frames0;
    std::vector<cv::Mat> frames1;
    int id;
    QString codec;
    float rotationAngle;
    bool reconstructed;
    SMFrameSequence(): id(-1), codec(""), rotationAngle(0), reconstructed(false){}
};


struct SMPointCloud {
    pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr pointCloud;
    float rotationAngle;
    int id;
    cv::Matx33f R;
    cv::Vec3f T;
    SMPointCloud(): pointCloud(), rotationAngle(-1), id(-1){}
};

#endif // SMTYPES_H