Structure to hold the parameters of a pinhole stereo camera model.
The parameters obtained for one camera resolution can be used for any other resolution by means of the method TCamera::scaleToResolution()
#include <mrpt/utils/TCamera.h>
mrpt::utils::TStereoCamera::TStereoCamera | ( | ) | [inline] |
static const mrpt::utils::TRuntimeClassId* mrpt::utils::TStereoCamera::_GetBaseClass | ( | ) | [static, protected] |
Reimplemented from mrpt::utils::CSerializable.
static TStereoCameraPtr mrpt::utils::TStereoCamera::Create | ( | ) | [static] |
static mrpt::utils::CObject* mrpt::utils::TStereoCamera::CreateObject | ( | ) | [static] |
virtual mrpt::utils::CObject* mrpt::utils::TStereoCamera::duplicate | ( | ) | const [virtual] |
Returns a copy of the object, indepently of its class.
Implements mrpt::utils::CObject.
virtual const mrpt::utils::TRuntimeClassId* mrpt::utils::TStereoCamera::GetRuntimeClass | ( | ) | const [virtual] |
Returns information about the class of an object in runtime.
Reimplemented from mrpt::utils::CSerializable.
void mrpt::utils::TStereoCamera::loadFromConfigFile | ( | const std::string & | section, |
const mrpt::utils::CConfigFileBase & | cfg | ||
) |
Load all the params from a config source, in the format used in saveToConfigFile(), that is:
[SECTION] resolution = [NCOLS NROWS] cx = CX cy = CY fx = FX fy = FY dist = [K1 K2 T1 T2 K3] focal_length = FOCAL_LENGTH [optional field]
std::exception | on missing fields |
void mrpt::utils::TStereoCamera::saveToConfigFile | ( | const std::string & | section, |
mrpt::utils::CConfigFileBase & | cfg | ||
) | const |
Save as a config block:
[SECTION] resolution = [NCOLS NROWS] cx = CX cy = CY fx = FX fy = FY dist = [K1 K2 T1 T2 K3] focal_length = FOCAL_LENGTH
mrpt::utils::CLASSINIT mrpt::utils::TStereoCamera::_init_TStereoCamera [static, protected] |
const mrpt::utils::TRuntimeClassId* mrpt::utils::TStereoCamera::classinfo [static] |
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011 |