42 #ifndef _STEREO_MATCHER_H_ 43 #define _STEREO_MATCHER_H_ 162 int Match(
const CByteImage *pLeftImage,
const CByteImage *pRightImage,
int x,
int y,
int nWindowSize,
int d1,
int d2,
Vec2d &result,
Vec3d &result_3d,
float fThreshold,
bool bInputImagesAreUndistorted =
false);
193 int MatchZSAD(
const CByteImage *pLeftImage,
const CByteImage *pRightImage,
int x,
int y,
int nWindowSize,
int d1,
int d2,
Vec2d &result,
Vec3d &result_3d,
float fThreshold,
bool bInputImagesAreUndistorted =
false);
GLboolean GLenum GLenum GLvoid * values
void InitCameraParameters(CStereoCalibration *pStereoCalibration, bool bCloneCalibration)
Initializes the internally used camera model, given an instance of CStereoCalibration.
Class for computing matches for individual points in stereo image pairs.
bool m_bOwnStereoCalibrationObject
Data structure for the representation of a 3D vector.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
CStereoCalibration * m_pStereoCalibration
int MatchZSAD(const CByteImage *pLeftImage, const CByteImage *pRightImage, int x, int y, int nWindowSize, int d1, int d2, Vec2d &result, Vec3d &result_3d, float fThreshold, bool bInputImagesAreUndistorted=false)
Computes a disparity estimated for a given z-distance using the Zero-Mean Sum of Absolute Differences...
int SingleZNCC(const CByteImage *pInputImage1, const CByteImage *pInputImage2, int x, int y, int nWindowSize, int d1, int d2, float *values)
Camera model and functions for a stereo camera system.
int SingleZSAD(const CByteImage *pInputImage1, const CByteImage *pInputImage2, int x, int y, int nWindowSize, int d1, int d2, float *values)
~CStereoMatcher()
The destructor.
int GetDisparityEstimate(const float z)
Computes a disparity estimated for a given z-distance.
bool LoadCameraParameters(const char *pCameraParameterFileName)
Initializes the internally used camera model, given a file path to a camera parameter file...
CStereoMatcher()
The default constructor (and only constructor).
Data structure for the representation of a 2D vector.
int Match(const CByteImage *pLeftImage, const CByteImage *pRightImage, int x, int y, int nWindowSize, int d1, int d2, Vec2d &result, Vec3d &result_3d, float fThreshold, bool bInputImagesAreUndistorted=false)
Computes a disparity estimated for a given z-distance using the Zero-Mean Normalized Cross Correlatio...