SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSFrame.h
Go to the documentation of this file.
1 #ifndef SENS_FRAME_H
2 #define SENS_FRAME_H
3 
4 #include <opencv2/core.hpp>
5 #include <SENS.h>
6 #include <memory>
7 
8 //Camera frame obeject
10 {
12  : imgBGR(imgBGR),
14  width(width),
15  height(height),
16  timePt(timePt)
17  {
18  }
19 
20  cv::Mat imgBGR;
21  cv::Mat intrinsics;
22  int width;
23  int height;
24 
26 };
27 using SENSFrameBasePtr = std::shared_ptr<SENSFrameBase>;
28 //typedef std::shared_ptr<SENSFrameBase> SENSFrameBasePtr;
29 
30 struct SENSFrame
31 {
33  cv::Mat imgBGR,
34  cv::Mat imgManip,
35  bool mirroredH,
36  bool mirroredV,
37  float scaleToManip,
38  cv::Mat intrinsics,
39  int width,
40  int height)
41  : timePt(timePt),
42  imgBGR(imgBGR),
48  width(width),
49  height(height)
50  {
51  }
52 
54 
55  //! original image (maybe cropped and scaled)
56  cv::Mat imgBGR;
57  //! scaled and maybe gray manipulated image
58  cv::Mat imgManip;
59 
60  //const int captureWidth;
61  //const int captureHeight;
62  //const int cropW;
63  //const int cropH;
64  const bool mirroredH;
65  const bool mirroredV;
66  //! scale between imgManip and imgBGR
67  const float scaleToManip;
68 
69  cv::Mat intrinsics;
70  int width;
71  int height;
72 };
73 using SENSFramePtr = std::shared_ptr<SENSFrame>;
74 //typedef std::shared_ptr<SENSFrame> SENSFramePtr;
75 
76 #endif //SENS_FRAME_H
std::chrono::high_resolution_clock::time_point SENSTimePt
Definition: SENS.h:57
std::shared_ptr< SENSFrame > SENSFramePtr
Definition: SENSFrame.h:73
std::shared_ptr< SENSFrameBase > SENSFrameBasePtr
Definition: SENSFrame.h:27
cv::Mat imgBGR
Definition: SENSFrame.h:20
const SENSTimePt timePt
Definition: SENSFrame.h:25
cv::Mat intrinsics
Definition: SENSFrame.h:21
SENSFrameBase(SENSTimePt timePt, cv::Mat imgBGR, cv::Mat intrinsics, int width, int height)
Definition: SENSFrame.h:11
cv::Mat intrinsics
Definition: SENSFrame.h:69
const bool mirroredV
Definition: SENSFrame.h:65
const SENSTimePt timePt
Definition: SENSFrame.h:53
SENSFrame(const SENSTimePt &timePt, cv::Mat imgBGR, cv::Mat imgManip, bool mirroredH, bool mirroredV, float scaleToManip, cv::Mat intrinsics, int width, int height)
Definition: SENSFrame.h:32
const bool mirroredH
Definition: SENSFrame.h:64
int width
Definition: SENSFrame.h:70
cv::Mat imgManip
scaled and maybe gray manipulated image
Definition: SENSFrame.h:58
cv::Mat imgBGR
original image (maybe cropped and scaled)
Definition: SENSFrame.h:56
const float scaleToManip
scale between imgManip and imgBGR
Definition: SENSFrame.h:67
int height
Definition: SENSFrame.h:71