Subversion Repositories seema-scanner

Rev

Rev 245 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 jakw 1
#ifndef SMTYPES_H
2
#define SMTYPES_H
3
 
4
#include <opencv2/opencv.hpp>
41 jakw 5
#include <pcl/point_cloud.h>
6
#include <pcl/point_types.h>
27 jakw 7
#include <QString>
23 jakw 8
 
27 jakw 9
struct SMCalibrationSet {
225 jakw 10
 
135 jakw 11
    // frames. if one channel it is BG Bayer. if three it is color.
23 jakw 12
    cv::Mat frame0;
13
    cv::Mat frame1;
123 jakw 14
    int id;
23 jakw 15
    float rotationAngle;
225 jakw 16
 
17
    bool selected;
18
 
25 jakw 19
    cv::Mat frame0Result;
20
    cv::Mat frame1Result;
250 jakw 21
 
225 jakw 22
    std::vector<cv::Point2f> qc0;
250 jakw 23
    std::vector<int> qc0id;
225 jakw 24
    std::vector<cv::Point2f> qc1;
250 jakw 25
    std::vector<int> qc1id;
225 jakw 26
 
27
    SMCalibrationSet(): id(-1), rotationAngle(0), selected(false){}
23 jakw 28
};
29
 
25 jakw 30
 
27 jakw 31
struct SMFrameSequence {
113 jakw 32
    // raw bayer frames
103 jakw 33
    std::vector<cv::Mat> frames0;
34
    std::vector<cv::Mat> frames1;
45 jakw 35
    int id;
27 jakw 36
    QString codec;
23 jakw 37
    float rotationAngle;
75 jakw 38
    bool reconstructed;
245 jakw 39
    std::vector<float> shutters;
123 jakw 40
    SMFrameSequence(): id(-1), codec(""), rotationAngle(0), reconstructed(false){}
23 jakw 41
};
42
 
41 jakw 43
 
44
struct SMPointCloud {
128 jakw 45
    pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr pointCloud;
41 jakw 46
    float rotationAngle;
45 jakw 47
    int id;
44 jakw 48
    cv::Matx33f R;
49
    cv::Vec3f T;
207 flgw 50
    SMPointCloud(): rotationAngle(-1), id(-1){}
41 jakw 51
};
52
 
23 jakw 53
#endif // SMTYPES_H