コード例 #1
0
bool ExtrinsicCalibrator::Run()
{
    loadCalibData("../Data/camCalib/cam_rgb_1.xml", "../Data/camCalib/distort_rgb_1.xml", "../Data/camCalib/cam_rgb_2.xml", "../Data/camCalib/distort_rgb_2.xml");
    Mat img1,img2;
    imread
    return true;
}
コード例 #2
0
ファイル: StereoMatch.cpp プロジェクト: dearjion/StereoVision
/*----------------------------
 * 功能 : 初始化内部变量,载入双目定标结果数据
 *----------------------------
 * 函数 : StereoMatch::init
 * 访问 : public 
 * 返回 : 0 - 载入定标数据失败,1 - 载入定标数据成功
 *
 * 参数 : imgWidth		[in]	图像宽度
 * 参数 : imgHeight		[in]	图像高度
 * 参数 : xmlFilePath	[in]	双目定标结果数据文件
 */
int StereoMatch::init(int imgWidth, int imgHeight, const char* xmlFilePath)
{
	m_frameWidth = imgWidth;
	m_frameHeight = imgHeight;
	m_numberOfDisparies = 0;

	return loadCalibData(xmlFilePath);
}