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);
198 int SingleZNCC(
const CByteImage *pInputImage1,
const CByteImage *pInputImage2,
int x,
int y,
int nWindowSize,
int d1,
int d2,
float *values);
199 int SingleZSAD(
const CByteImage *pInputImage1,
const CByteImage *pInputImage2,
int x,
int y,
int nWindowSize,
int d1,
int d2,
float *values);
203 bool m_bOwnStereoCalibrationObject;
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...
Data structure for the representation of a 2D vector.
bool LoadCameraParameters(const char *pCameraParameterFileName)
Initializes the internally used camera model, given a file path to a camera parameter file...
void InitCameraParameters(CStereoCalibration *pStereoCalibration, bool bCloneCalibration)
Initializes the internally used camera model, given an instance of CStereoCalibration.
CStereoMatcher()
The default constructor (and only constructor).
Class for computing matches for individual points in stereo image pairs.
Data structure for the representation of a 3D 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...
int GetDisparityEstimate(const float z)
Computes a disparity estimated for a given z-distance.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Camera model and functions for a stereo camera system.
~CStereoMatcher()
The destructor.