<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>bundle_adjustment.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#namespaces">Namespaces</a> </div> <div class="headertitle"> <div class="title">bundle_adjustment.h File Reference</div> </div> </div> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="vision_2include_2mrpt_2vision_2types_8h_source.html">mrpt/vision/types.h</a>></code><br/> <code>#include <<a class="el" href="_t_camera_8h_source.html">mrpt/utils/TCamera.h</a>></code><br/> <code>#include <<a class="el" href="_t_parameters_8h_source.html">mrpt/utils/TParameters.h</a>></code><br/> <code>#include <<a class="el" href="lightweight__geom__data_8h_source.html">mrpt/math/lightweight_geom_data.h</a>></code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for bundle_adjustment.h:</div> <div class="dyncontent"> <div class="center"><img src="bundle__adjustment_8h__incl.png" border="0" usemap="#bundle__adjustment_8h" alt=""/></div> <map name="bundle__adjustment_8h" id="bundle__adjustment_8h"> <area shape="rect" id="node3" href="vision_2include_2mrpt_2vision_2types_8h.html" title="mrpt/vision/types.h" alt="" coords="1827,80,1960,107"/><area shape="rect" id="node99" href="_t_camera_8h.html" title="mrpt/utils/TCamera.h" alt="" coords="990,229,1135,256"/><area shape="rect" id="node148" href="lightweight__geom__data_8h.html" title="mrpt/math/lightweight_geom_data.h" alt="" coords="1904,528,2133,555"/><area shape="rect" id="node167" href="_t_parameters_8h.html" title="mrpt/utils/TParameters.h" alt="" coords="1971,603,2137,629"/><area shape="rect" id="node5" href="_c_image_8h.html" title="mrpt/utils/CImage.h" alt="" coords="234,155,371,181"/><area shape="rect" id="node103" href="_c_loadable_options_8h.html" title="mrpt/utils/CLoadableOptions.h" alt="" coords="737,379,935,405"/><area shape="rect" id="node159" href="_t_matching_pair_8h.html" title="mrpt/utils/TMatchingPair.h" alt="" coords="1806,229,1980,256"/><area shape="rect" id="node162" href="vision_2include_2mrpt_2vision_2link__pragmas_8h.html" title="mrpt/vision/link_pragmas.h" alt="" coords="1769,1125,1948,1152"/><area shape="rect" id="node7" href="utils__defs_8h.html" title="mrpt/utils/utils_defs.h" alt="" coords="1008,976,1155,1003"/><area shape="rect" id="node11" href="os_8h.html" title="mrpt/system/os.h" alt="" coords="794,1051,917,1077"/><area shape="rect" id="node44" href="_c_serializable_8h.html" title="mrpt/utils/CSerializable.h" alt="" coords="760,677,928,704"/><area shape="rect" id="node57" href="exceptions_8h.html" title="mrpt/utils/exceptions.h" alt="" coords="560,827,713,853"/><area shape="rect" id="node64" href="_c_matrix_8h.html" title="mrpt/math/CMatrix.h" alt="" coords="398,379,540,405"/><area shape="rect" id="node95" href="_c_canvas_8h.html" title="mrpt/utils/CCanvas.h" alt="" coords="93,379,240,405"/><area shape="rect" id="node20" href="base_2include_2mrpt_2base_2link__pragmas_8h.html" title="mrpt/base/link_pragmas.h" alt="" coords="1431,1125,1603,1152"/><area shape="rect" id="node23" href="boost__join_8h.html" title="mrpt/utils/boost_join.h" alt="" coords="1566,1200,1716,1227"/><area shape="rect" id="node25" href="mrpt__macros_8h.html" title="mrpt/utils/mrpt_macros.h" alt="" coords="886,1125,1052,1152"/><area shape="rect" id="node28" href="compiler__fixes_8h.html" title="mrpt/utils/compiler_fixes.h" alt="" coords="994,1051,1168,1077"/><area shape="rect" id="node46" href="_c_object_8h.html" title="mrpt/utils/CObject.h" alt="" coords="789,827,928,853"/><area shape="rect" id="node49" href="safe__pointers_8h.html" title="mrpt/utils/safe_pointers.h" alt="" coords="494,901,663,928"/><area shape="rect" id="node53" href="_c_stream_8h.html" title="mrpt/utils/CStream.h" alt="" coords="678,752,820,779"/><area shape="rect" id="node67" href="_c_matrix_template_numeric_8h.html" title="mrpt/math/CMatrixTemplateNumeric.h" alt="" coords="195,453,440,480"/><area shape="rect" id="node89" href="_c_matrix_fixed_numeric_8h.html" title="mrpt/math/CMatrixFixedNumeric.h" alt="" coords="1641,453,1863,480"/><area shape="rect" id="node69" href="_c_matrix_template_8h.html" title="mrpt/math/CMatrixTemplate.h" alt="" coords="1451,528,1647,555"/><area shape="rect" id="node72" href="math__frwds_8h.html" title="mrpt/math/math_frwds.h" alt="" coords="1707,677,1871,704"/><area shape="rect" id="node80" href="_c_array_8h.html" title="mrpt/math/CArray.h" alt="" coords="1606,603,1743,629"/><area shape="rect" id="node106" href="_c_config_file_base_8h.html" title="mrpt/utils/CConfigFileBase.h" alt="" coords="1102,453,1292,480"/><area shape="rect" id="node127" href="_c_config_file_memory_8h.html" title="mrpt/utils/CConfigFileMemory.h" alt="" coords="959,379,1165,405"/><area shape="rect" id="node137" href="_c_pose3_d_quat_8h.html" title="mrpt/poses/CPose3DQuat.h" alt="" coords="1509,304,1696,331"/><area shape="rect" id="node109" href="_t_enum_type_8h.html" title="mrpt/utils/TEnumType.h" alt="" coords="1264,528,1427,555"/><area shape="rect" id="node121" href="string__utils_8h.html" title="mrpt/system/string_utils.h" alt="" coords="1155,827,1328,853"/><area shape="rect" id="node112" href="stl__extensions_8h.html" title="mrpt/utils/stl_extensions.h" alt="" coords="1254,603,1428,629"/><area shape="rect" id="node131" href="_c_string_list_8h.html" title="mrpt/utils/CStringList.h" alt="" coords="819,603,975,629"/><area shape="rect" id="node139" href="_c_pose_8h.html" title="mrpt/poses/CPose.h" alt="" coords="1618,379,1760,405"/><area shape="rect" id="node142" href="_c_quaternion_8h.html" title="mrpt/math/CQuaternion.h" alt="" coords="1242,379,1411,405"/><area shape="rect" id="node146" href="_c_point3_d_8h.html" title="mrpt/poses/CPoint3D.h" alt="" coords="1435,379,1593,405"/><area shape="rect" id="node152" href="_t_pixel_coord_8h.html" title="mrpt/utils/TPixelCoord.h" alt="" coords="2027,901,2189,928"/></map> </div> </div><div class="textblock"><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dyncontent"> <div class="center"><img src="bundle__adjustment_8h__dep__incl.png" border="0" usemap="#bundle__adjustment_8hdep" alt=""/></div> <map name="bundle__adjustment_8hdep" id="bundle__adjustment_8hdep"> <area shape="rect" id="node3" href="vision_8h.html" title="vision.h" alt="" coords="43,80,109,107"/></map> </div> </div> <p><a href="bundle__adjustment_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="namespaces"></a> Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt.html">mrpt</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. </p> <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1vision.html">mrpt::vision</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Classes for computer vision, detectors, features, etc. </p> <br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Bundle-Adjustment Auxiliary methods</div></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#ga3d11e2afc4d575bacd1699f9ba0f479a">mrpt::vision::ba_initial_estimate</a> (const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &observations, const <a class="el" href="classmrpt_1_1utils_1_1_t_camera.html">mrpt::utils::TCamera</a> &camera_params, <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &frame_poses, <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &landmark_points)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fills the frames & landmark points maps with an initial gross estimate from the sequence <em>observations</em>, so they can be fed to bundle adjustment methods. <a href="group__bundle__adj.html#ga3d11e2afc4d575bacd1699f9ba0f479a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#gab92c9a153aa4c107299f26be55179a0e">mrpt::vision::ba_initial_estimate</a> (const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &observations, const <a class="el" href="classmrpt_1_1utils_1_1_t_camera.html">mrpt::utils::TCamera</a> &camera_params, <a class="el" href="group__mrpt__vision__grp.html#ga62b8ac1f5f748ac325c921ee16b28ff7">mrpt::vision::TFramePosesMap</a> &frame_poses, <a class="el" href="group__mrpt__vision__grp.html#gaef17b094c368f8a0ea926e8af3183feb">mrpt::vision::TLandmarkLocationsMap</a> &landmark_points)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">double VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#ga008e17744135c93e2ab9ae735372435c">mrpt::vision::reprojectionResiduals</a> (const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &observations, const <a class="el" href="classmrpt_1_1utils_1_1_t_camera.html">mrpt::utils::TCamera</a> &camera_params, const <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &frame_poses, const <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &landmark_points, <a class="el" href="classstd_1_1vector.html">std::vector</a>< CArray< double, 2 > > &out_residuals, const bool frame_poses_are_inverse, const bool use_robust_kernel=true, const double kernel_param=3.0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute reprojection error vector (used from within Bundle Adjustment methods, but can be used in general) See <a class="el" href="group__bundle__adj.html#gabb5e8247d164906bce57a3c05b001953" title="Sparse Levenberg-Marquart solution to bundle adjustment - optimizes all the camera frames & the landm...">mrpt::vision::bundle_adj_full</a> for a description of most parameters. <a href="group__bundle__adj.html#ga008e17744135c93e2ab9ae735372435c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#ga2c437db09dbcaf05c33d2bb0e38a56b8">mrpt::vision::reprojectionResiduals</a> (const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &observations, const <a class="el" href="classmrpt_1_1utils_1_1_t_camera.html">mrpt::utils::TCamera</a> &camera_params, const <a class="el" href="group__mrpt__vision__grp.html#ga62b8ac1f5f748ac325c921ee16b28ff7">mrpt::vision::TFramePosesMap</a> &frame_poses, const <a class="el" href="group__mrpt__vision__grp.html#gaef17b094c368f8a0ea926e8af3183feb">mrpt::vision::TLandmarkLocationsMap</a> &landmark_points, <a class="el" href="classstd_1_1vector.html">std::vector</a>< CArray< double, 2 > > &out_residuals, const bool frame_poses_are_inverse, const bool use_robust_kernel=true, const double kernel_param=3.0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#ga96e2458ae31058a3a0125258ca469d44">mrpt::vision::add_se3_deltas_to_frames</a> (const <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &frame_poses, const <a class="el" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">mrpt::vector_double</a> &delta, const size_t delta_first_idx, const size_t delta_num_vals, <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &new_frame_poses, const size_t num_fix_frames)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For each pose in the vector <em>frame_poses</em>, adds a "delta" increment to the manifold, with the "delta" given in the se(3) Lie algebra: <a href="group__bundle__adj.html#ga96e2458ae31058a3a0125258ca469d44"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#gad10bdb5e4afebe6c3b535dc888b235b1">mrpt::vision::add_3d_deltas_to_points</a> (const <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &landmark_points, const <a class="el" href="namespacemrpt.html#a4a6aab2c98368ca6b554c04f8fe84cfb">mrpt::vector_double</a> &delta, const size_t delta_first_idx, const size_t delta_num_vals, <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &new_landmark_points, const size_t num_fix_points)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For each pose in the vector <em>frame_poses</em>, adds a "delta" increment to the manifold, with the "delta" given in the se(3) Lie algebra: <a href="group__bundle__adj.html#gad10bdb5e4afebe6c3b535dc888b235b1"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="member-group"></a> Bundle-Adjustment methods</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1vision.html#a7e12f372278c656321223eec4aced3fb">mrpt::vision::TBundleAdjustmentFeedbackFunctor</a> )(const size_t cur_iter, const double cur_total_sq_error, const size_t max_iters, const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &input_observations, const <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &current_frame_estimate, const <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &current_landmark_estimate)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A functor type for BA methods. <a href="#a7e12f372278c656321223eec4aced3fb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">double VISION_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__bundle__adj.html#gabb5e8247d164906bce57a3c05b001953">mrpt::vision::bundle_adj_full</a> (const <a class="el" href="structmrpt_1_1vision_1_1_t_sequence_feature_observations.html">mrpt::vision::TSequenceFeatureObservations</a> &observations, const <a class="el" href="classmrpt_1_1utils_1_1_t_camera.html">mrpt::utils::TCamera</a> &camera_params, <a class="el" href="group__mrpt__vision__grp.html#gabe5f1a7756ced9db83e245414fd54def">mrpt::vision::TFramePosesVec</a> &frame_poses, <a class="el" href="group__mrpt__vision__grp.html#gaa8fa8b53643b4e650a959867691e3adc">mrpt::vision::TLandmarkLocationsVec</a> &landmark_points, const <a class="el" href="namespacemrpt_1_1utils.html#a694777f2a3544999baea34e43a42eceb">mrpt::utils::TParametersDouble</a> &extra_params=<a class="el" href="namespacemrpt_1_1utils.html#a694777f2a3544999baea34e43a42eceb">mrpt::utils::TParametersDouble</a>(), const <a class="el" href="namespacemrpt_1_1vision.html#a7e12f372278c656321223eec4aced3fb">mrpt::vision::TBundleAdjustmentFeedbackFunctor</a> user_feedback=NULL)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sparse Levenberg-Marquart solution to bundle adjustment - optimizes all the camera frames & the landmark locations. <a href="group__bundle__adj.html#gabb5e8247d164906bce57a3c05b001953"></a><br/></td></tr> </table> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>