Update Pinhole.cpp
parent
e541c12dbe
commit
d09dbefb05
|
@ -220,10 +220,14 @@ std::ostream &operator<<(std::ostream &os, const Pinhole &ph)
|
||||||
os << ph.mvParameters[0] << " " << ph.mvParameters[1] << " " << ph.mvParameters[2] << " " << ph.mvParameters[3];
|
os << ph.mvParameters[0] << " " << ph.mvParameters[1] << " " << ph.mvParameters[2] << " " << ph.mvParameters[3];
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
SkewSymmetricMatrix
|
std::istream & operator>>(std::istream &is, Pinhole &ph)
|
||||||
|
{
|
||||||
|
float nextParam;
|
||||||
|
for(size_t i = 0; i < 4; i++){
|
||||||
assert(is.good()); //Make sure the input stream is good
|
assert(is.good()); //Make sure the input stream is good
|
||||||
is >> nextParam;
|
is >> nextParam;
|
||||||
ph.mvParameters[i] = nextParam;
|
ph.mvParameters[i] = nextParam;
|
||||||
|
|
||||||
}
|
}
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue