mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
CalibrationDialog: fixed D not shown properly, add scroll area for small screens
This commit is contained in:
@@ -722,8 +722,8 @@ void CalibrationDialog::calibrate()
|
|||||||
P.at<double>(2,3) = 1;
|
P.at<double>(2,3) = 1;
|
||||||
K.copyTo(P.colRange(0,3).rowRange(0,3));
|
K.copyTo(P.colRange(0,3).rowRange(0,3));
|
||||||
|
|
||||||
std::cout << "cameraMatrix = " << K << std::endl;
|
std::cout << "K = " << K << std::endl;
|
||||||
std::cout << "distCoeffs = " << D << std::endl;
|
std::cout << "D = " << D << std::endl;
|
||||||
std::cout << "width = " << imageSize_[id].width << std::endl;
|
std::cout << "width = " << imageSize_[id].width << std::endl;
|
||||||
std::cout << "height = " << imageSize_[id].height << std::endl;
|
std::cout << "height = " << imageSize_[id].height << std::endl;
|
||||||
|
|
||||||
@@ -738,8 +738,8 @@ void CalibrationDialog::calibrate()
|
|||||||
ui_->label_error->setNum(totalAvgErr);
|
ui_->label_error->setNum(totalAvgErr);
|
||||||
|
|
||||||
std::stringstream strK, strD, strR, strP;
|
std::stringstream strK, strD, strR, strP;
|
||||||
strK << models_[id].K();
|
strK << models_[id].K_raw();
|
||||||
strD << models_[id].D();
|
strD << models_[id].D_raw();
|
||||||
strR << models_[id].R();
|
strR << models_[id].R();
|
||||||
strP << models_[id].P();
|
strP << models_[id].P();
|
||||||
ui_->lineEdit_K->setText(strK.str().c_str());
|
ui_->lineEdit_K->setText(strK.str().c_str());
|
||||||
@@ -756,8 +756,8 @@ void CalibrationDialog::calibrate()
|
|||||||
ui_->label_error_2->setNum(totalAvgErr);
|
ui_->label_error_2->setNum(totalAvgErr);
|
||||||
|
|
||||||
std::stringstream strK, strD, strR, strP;
|
std::stringstream strK, strD, strR, strP;
|
||||||
strK << models_[id].K();
|
strK << models_[id].K_raw();
|
||||||
strD << models_[id].D();
|
strD << models_[id].D_raw();
|
||||||
strR << models_[id].R();
|
strR << models_[id].R();
|
||||||
strP << models_[id].P();
|
strP << models_[id].P();
|
||||||
ui_->lineEdit_K_2->setText(strK.str().c_str());
|
ui_->lineEdit_K_2->setText(strK.str().c_str());
|
||||||
@@ -806,6 +806,11 @@ void CalibrationDialog::calibrate()
|
|||||||
#endif
|
#endif
|
||||||
UINFO("stereo calibration... done with RMS error=%f", rms);
|
UINFO("stereo calibration... done with RMS error=%f", rms);
|
||||||
|
|
||||||
|
std::cout << "R = " << R << std::endl;
|
||||||
|
std::cout << "T = " << T << std::endl;
|
||||||
|
std::cout << "E = " << E << std::endl;
|
||||||
|
std::cout << "F = " << F << std::endl;
|
||||||
|
|
||||||
if(imageSize_[0] == imageSize_[1])
|
if(imageSize_[0] == imageSize_[1])
|
||||||
{
|
{
|
||||||
//Stereo, compute stereo rectification
|
//Stereo, compute stereo rectification
|
||||||
|
|||||||
+603
-585
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user