15 #ifndef niftkSequentialCpuQds_h
16 #define niftkSequentialCpuQds_h
18 #include "niftkOpenCVExports.h"
20 #include <opencv2/core/types_c.h>
23 #include <boost/gil/gil_all.hpp>
26 #ifndef NIFTKOPENCV_EXPORT
27 #define NIFTKOPENCV_EXPORT
56 #error You are compiling against the static version of the CRT. This is not supported! Choose DLL instead!
58 #pragma message("Warning: cannot tell which CRT version you are building with. Stuff might fail.")
63 #pragma warning(disable: 4251) // class '...' needs to have dll-interface to be used by clients of class '...'
76 virtual void Process(
const IplImage*
left,
const IplImage* right)
override;
79 virtual int GetWidth()
const override;
80 virtual int GetHeight()
const override;
83 virtual IplImage* CreateDisparityImage()
const override;
85 virtual CvPoint GetMatch(
int x,
int y)
const override;
93 void InitSparseFeatures();
95 void QuasiDensePropagation();
107 boost::gil::gray8_image_t m_LeftImg;
108 boost::gil::gray8_image_t m_RightImg;
110 boost::gil::gray32s_image_t m_LeftIntegral;
111 boost::gil::gray32s_image_t m_RightIntegral;
113 boost::gil::gray64f_image_t m_LeftSquaredIntegral;
114 boost::gil::gray64f_image_t m_RightSquaredIntegral;
116 boost::gil::gray8_image_t m_LeftTexture;
117 boost::gil::gray8_image_t m_RightTexture;
119 boost::gil::dev2n16_image_t m_LeftRefMap;
120 boost::gil::dev2n16_image_t m_RightRefMap;
126 IplImage m_LeftIntegralIpl;
127 IplImage m_RightIntegralIpl;
128 IplImage m_LeftSquaredIntegralIpl;
129 IplImage m_RightSquaredIntegralIpl;
131 static const int NUM_MAX_FEATURES = 500;
132 std::vector<CvPoint2D32f> m_SparseFeaturesLeft;
133 std::vector<CvPoint2D32f> m_SparseFeaturesRight;
134 std::vector<char> m_FeatureStatus;
137 const int m_MaxDisparity;
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1236
int WinSizeX
Definition: niftkSequentialCpuQds.h:35
int N
Definition: niftkSequentialCpuQds.h:45
int Dg
Definition: niftkSequentialCpuQds.h:46
Definition: niftkQDSCommon.h:97
float Tt
Definition: niftkSequentialCpuQds.h:42
int WinSizeY
Definition: niftkSequentialCpuQds.h:36
#define NIFTKOPENCV_EXPORT
Definition: niftkSequentialCpuQds.h:27
GLint left
Definition: glew.h:6793
Definition: niftkSequentialCpuQds.h:33
float Ct
Definition: niftkSequentialCpuQds.h:41
GLint GLint GLint GLint GLint x
Definition: glew.h:1236
int BorderX
Definition: niftkSequentialCpuQds.h:38
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
Definition: glew.h:1236
GLint GLint GLint GLint GLint GLint GLsizei width
Definition: glew.h:1236
Definition: niftkSequentialCpuQds.h:66
int BorderY
Definition: niftkSequentialCpuQds.h:39
Definition: niftkExceptionObject.h:21