15 #ifndef niftkQDSCommon_h
16 #define niftkQDSCommon_h
18 #include "niftkOpenCVExports.h"
19 #include <boost/gil/gil_all.hpp>
20 #include <opencv2/core/types_c.h>
21 #include <opencv2/core/core.hpp>
35 typedef scoped_channel_value<double, double_zero, double_one>
bits64f;
37 GIL_DEFINE_BASE_TYPEDEFS(64
f,gray)
50 RefPoint(
unsigned short _x = -1,
unsigned short _y = -1)
65 operator boost::gil::dev2n16_pixel_t()
const
67 return boost::gil::dev2n16_pixel_t(x, y);
83 const boost::gil::gray8c_view_t
src,
84 const boost::gil::gray8_view_t
dst);
87 boost::gil::gray8c_view_t img0,
88 boost::gil::gray8c_view_t img1,
89 boost::gil::gray32sc_view_t integral0,
90 boost::gil::gray32sc_view_t integral1,
91 boost::gil::gray64fc_view_t square0,
92 boost::gil::gray64fc_view_t square1);
102 virtual void Process(
const IplImage*
left,
const IplImage* right) = 0;
104 virtual int GetWidth()
const = 0;
105 virtual int GetHeight()
const = 0;
107 virtual CvPoint GetMatch(
int x,
int y)
const = 0;
110 virtual IplImage* CreateDisparityImage()
const = 0;
Definition: niftkQDSCommon.h:27
bool operator<(const GoldStandardPoint &GSP1, const GoldStandardPoint &GSP2)
Definition: mitkOpenCVPointTypes.cxx:125
void BuildTextureDescriptor(const boost::gil::gray8c_view_t src, const boost::gil::gray8_view_t dst)
Definition: niftkQDSCommon.cxx:45
static float apply()
Definition: niftkQDSCommon.h:32
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1236
GLenum src
Definition: glew.h:2406
unsigned short x
Definition: niftkQDSCommon.h:47
Definition: niftkQDSCommon.h:32
Definition: niftkQDSCommon.h:97
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1874
GLenum GLenum dst
Definition: glew.h:2406
Definition: niftkQDSCommon.h:33
unsigned short y
Definition: niftkQDSCommon.h:48
GLfloat GLfloat p
Definition: glew.h:14169
static float apply()
Definition: niftkQDSCommon.h:33
#define NIFTKOPENCV_EXPORT
Definition: niftkSequentialCpuQds.h:27
Definition: niftkQDSCommon.h:45
RefPoint & operator=(const RefPoint &p)
Definition: niftkQDSCommon.h:55
GLint left
Definition: glew.h:6793
scoped_channel_value< double, double_zero, double_one > bits64f
Definition: niftkQDSCommon.h:35
float Zncc_C1(int p0x, int p0y, int p1x, int p1y, int w, boost::gil::gray8c_view_t img0, boost::gil::gray8c_view_t img1, boost::gil::gray32sc_view_t integral0, boost::gil::gray32sc_view_t integral1, boost::gil::gray64fc_view_t square0, boost::gil::gray64fc_view_t square1)
Definition: niftkQDSCommon.cxx:90
GLint GLint GLint GLint GLint x
Definition: glew.h:1236
RefPoint(unsigned short _x=-1, unsigned short _y=-1)
Definition: niftkQDSCommon.h:50
Definition: niftkExceptionObject.h:21
GLclampf f
Definition: glew.h:3136