source: pacpussensors/trunk/StereoVisionDisparity/VDisparity.h@ 50

Last change on this file since 50 was 50, checked in by phudelai, 10 years ago

Flea3Component: Shared memory changed for stereovision
StereoVisionDisparity: Added for the PFE of Pierre

File size: 1.5 KB
Line 
1/*********************************************************************
2// created: 2012/03/01 - 14:06
3// filename: VDisparity.h
4//
5// author: Pierre Hudelaine
6// Copyright Heudiasyc UMR UTC/CNRS 7253
7//
8// version: $Id: $
9//
10// purpose:
11//
12*********************************************************************/
13
14#include "Pacpus/kernel/Log.h"
15#include "Pacpus/kernel/ComponentBase.h"
16#include "Pacpus/kernel/ComponentFactory.h"
17#include "Pacpus/PacpusTools/ShMem.h"
18
19#include "opencv2/opencv.hpp"
20
21#include "StereoVisionDisparityExp.h"
22
23
24
25namespace pacpus {
26
27class STEREOVISIONDISPARITY_API VDisparity
28 : public QObject
29 , public ComponentBase
30{
31 Q_OBJECT
32
33public:
34 /// Constructor
35 VDisparity(QString name);
36
37 /// Destructor
38 ~VDisparity();
39
40protected:
41 // The 3 virtual methods relative to the ComponentBase inheritance
42 virtual void startActivity();
43 virtual void stopActivity();
44 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
45
46private:
47
48 // Image reading
49 ShMem * shMemLeft_, * shMemRight_;
50 size_t maxImageSize_, img_height_, img_width_;
51 unsigned char * img_Ldata_, * img_Rdata_;
52
53 // Image processing
54 float theta_, sin_theta_, cos_theta_;
55 int disp_min_, disp_max_, subsampling_;
56 cv::Mat logR_;
57 //unsigned char * logR_, * logB_, * v_dis_, * v_dis_o_, * n_, * mn_, * Icc_;
58
59 void pre_detect();
60 void multi_obc();
61 void initMat();
62};
63
64} // namespace pacpus
Note: See TracBrowser for help on using the repository browser.