Subversion Repositories seema-scanner

Rev

Rev 225 | Go to most recent revision | Blame | Compare with Previous | 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 selected;

    cv::Mat frame0Result;
    cv::Mat frame1Result;
    std::vector<cv::Point2f> qc0;
    std::vector<cv::Point2f> qc1;

    SMCalibrationSet(): id(-1), rotationAngle(0), selected(false){}
};


struct SMFrameSequence {
    // raw bayer frames
    std::vector<cv::Mat> frames0;
    std::vector<cv::Mat> frames1;
    int id;
    QString codec;
    float rotationAngle;
    bool reconstructed;
    std::vector<float> shutters;
    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(): rotationAngle(-1), id(-1){}
};

#endif // SMTYPES_H