39 ParameterStereoCamera::ParameterStereoCamera(){
43 bool ParameterStereoCamera::read(std::istream& is) {
45 for (
int i=0; i<7; i++)
48 Vector4D::MapType(off.data()+3).
normalize();
51 is >> fx >> fy >> cx >> cy;
55 setBaseline(baseline_);
59 bool ParameterStereoCamera::write(std::ostream& os)
const {
61 for (
int i=0; i<7; i++)
63 os << _Kcam(0,0) <<
" ";
64 os << _Kcam(1,1) <<
" ";
65 os << _Kcam(0,2) <<
" ";
66 os << _Kcam(1,2) <<
" ";
67 os << baseline() <<
" ";
Isometry3D fromVectorQT(const Vector7d &v)
Eigen::Matrix< double, 7, 1 > Vector7d
Eigen::Quaterniond & normalize(Eigen::Quaterniond &q)
Vector7d toVectorQT(const Isometry3D &t)