Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 4bc66056a634db26a1f4d0845dc41ca6 > files > 6793

mrpt-doc-0.9.5-0.1.20110925svn2670.fc16.i686.rpm

<!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>RANSAC and other model fitting algorithms</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> &gt; <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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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><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>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">RANSAC and other model fitting algorithms</div>  </div>
<div class="ingroups"><a class="el" href="group__mrpt__base__grp.html">[mrpt-base]</a></div></div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for RANSAC and other model fitting algorithms:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__ransac__grp.png" border="0" alt="" usemap="#group____ransac____grp"/>
<map name="group____ransac____grp" id="group____ransac____grp">
<area shape="rect" id="node2" href="group__mrpt__base__grp.html" title=" Back to list of all libraries | See all modules &#160;&#160;" alt="" coords="5,5,93,32"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_model_search.html">mrpt::math::ModelSearch</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Model search implementations: RANSAC and genetic algorithm.  <a href="classmrpt_1_1math_1_1_model_search.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1math_1_1_r_a_n_s_a_c___template.html">mrpt::math::RANSAC_Template</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A generic RANSAC implementation with models as matrices.  <a href="classmrpt_1_1math_1_1_r_a_n_s_a_c___template.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef RANSAC_Template&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ransac__grp.html#ga6ef19b76f2cbad65eba7f701a610bff5">mrpt::math::RANSAC</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The default instance of RANSAC, for double type.  <a href="#ga6ef19b76f2cbad65eba7f701a610bff5"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
RANSAC detectors</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename NUMTYPE &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void BASE_IMPEXP&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__ransac__grp.html#gad7752b90d12df1104ea99deb81a87cb6">mrpt::math::ransac_detect_3D_planes</a> (const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;x, const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;y, const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;z, <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;out_detected_planes, const double threshold, const size_t min_inliers_for_valid_plane=10)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fit a number of 3-D planes to a given point cloud, automatically determining the number of existing planes by means of the provided threshold and minimum number of supporting inliers.  <a href="#gad7752b90d12df1104ea99deb81a87cb6"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename NUMTYPE &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void BASE_IMPEXP&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__ransac__grp.html#ga5eda1cbb54c7a1dc20cc3f905414bc05">mrpt::math::ransac_detect_2D_lines</a> (const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;x, const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;y, <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TLine2D &gt; &gt; &amp;out_detected_lines, const double threshold, const size_t min_inliers_for_valid_line=5)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fit a number of 2-D lines to a given point cloud, automatically determining the number of existing lines by means of the provided threshold and minimum number of supporting inliers.  <a href="#ga5eda1cbb54c7a1dc20cc3f905414bc05"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;class POINTSMAP &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__ransac__grp.html#ga34d81b34450c1d2712623f14e945cb79">mrpt::math::ransac_detect_3D_planes</a> (const POINTSMAP *points_map, <a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;out_detected_planes, const double threshold, const size_t min_inliers_for_valid_plane)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A stub for <a class="el" href="group__ransac__grp.html#gad7752b90d12df1104ea99deb81a87cb6" title="Fit a number of 3-D planes to a given point cloud, automatically determining the number of existing p...">ransac_detect_3D_planes()</a> with the points given as a <a class="el" href="classmrpt_1_1slam_1_1_c_points_map.html" title="A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors...">mrpt::slam::CPointsMap</a>.  <a href="#ga34d81b34450c1d2712623f14e945cb79"></a><br/></td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="ga6ef19b76f2cbad65eba7f701a610bff5"></a><!-- doxytag: member="mrpt::math::RANSAC" ref="ga6ef19b76f2cbad65eba7f701a610bff5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef RANSAC_Template&lt;double&gt; <a class="el" href="group__ransac__grp.html#ga6ef19b76f2cbad65eba7f701a610bff5">mrpt::math::RANSAC</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The default instance of RANSAC, for double type. </p>

<p>Definition at line <a class="el" href="ransac_8h_source.html#l00096">96</a> of file <a class="el" href="ransac_8h_source.html">ransac.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga5eda1cbb54c7a1dc20cc3f905414bc05"></a><!-- doxytag: member="mrpt::math::ransac_detect_2D_lines" ref="ga5eda1cbb54c7a1dc20cc3f905414bc05" args="(const Eigen::Matrix&lt; NUMTYPE, Eigen::Dynamic, 1 &gt; &amp;x, const Eigen::Matrix&lt; NUMTYPE, Eigen::Dynamic, 1 &gt; &amp;y, std::vector&lt; std::pair&lt; size_t, TLine2D &gt; &gt; &amp;out_detected_lines, const double threshold, const size_t min_inliers_for_valid_line=5)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename NUMTYPE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void BASE_IMPEXP mrpt::math::ransac_detect_2D_lines </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TLine2D &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>out_detected_lines</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>min_inliers_for_valid_line</em> = <code>5</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fit a number of 2-D lines to a given point cloud, automatically determining the number of existing lines by means of the provided threshold and minimum number of supporting inliers. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out_detected_lines</td><td>The output list of pairs: number of supporting inliers, detected line. </td></tr>
    <tr><td class="paramname">threshold</td><td>The maximum distance between a point and a temptative line such as the point is considered an inlier. </td></tr>
    <tr><td class="paramname">min_inliers_for_valid_line</td><td>The minimum number of supporting inliers to consider a line as valid. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad7752b90d12df1104ea99deb81a87cb6"></a><!-- doxytag: member="mrpt::math::ransac_detect_3D_planes" ref="gad7752b90d12df1104ea99deb81a87cb6" args="(const Eigen::Matrix&lt; NUMTYPE, Eigen::Dynamic, 1 &gt; &amp;x, const Eigen::Matrix&lt; NUMTYPE, Eigen::Dynamic, 1 &gt; &amp;y, const Eigen::Matrix&lt; NUMTYPE, Eigen::Dynamic, 1 &gt; &amp;z, std::vector&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;out_detected_planes, const double threshold, const size_t min_inliers_for_valid_plane=10)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename NUMTYPE &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void BASE_IMPEXP mrpt::math::ransac_detect_3D_planes </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_eigen_1_1_matrix.html">Eigen::Matrix</a>&lt; NUMTYPE, <a class="el" href="namespace_eigen.html#ad81fa7195215a0ce30017dfac309f0b2">Eigen::Dynamic</a>, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>out_detected_planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>min_inliers_for_valid_plane</em> = <code>10</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fit a number of 3-D planes to a given point cloud, automatically determining the number of existing planes by means of the provided threshold and minimum number of supporting inliers. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out_detected_planes</td><td>The output list of pairs: number of supporting inliers, detected plane. </td></tr>
    <tr><td class="paramname">threshold</td><td>The maximum distance between a point and a temptative plane such as the point is considered an inlier. </td></tr>
    <tr><td class="paramname">min_inliers_for_valid_plane</td><td>The minimum number of supporting inliers to consider a plane as valid. </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="ransac__applications_8h_source.html#l00080">mrpt::math::ransac_detect_3D_planes()</a>.</p>

</div>
</div>
<a class="anchor" id="ga34d81b34450c1d2712623f14e945cb79"></a><!-- doxytag: member="mrpt::math::ransac_detect_3D_planes" ref="ga34d81b34450c1d2712623f14e945cb79" args="(const POINTSMAP *points_map, std::vector&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;out_detected_planes, const double threshold, const size_t min_inliers_for_valid_plane)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class POINTSMAP &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void mrpt::math::ransac_detect_3D_planes </td>
          <td>(</td>
          <td class="paramtype">const POINTSMAP *&#160;</td>
          <td class="paramname"><em>points_map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classstd_1_1vector.html">std::vector</a>&lt; std::pair&lt; size_t, TPlane &gt; &gt; &amp;&#160;</td>
          <td class="paramname"><em>out_detected_planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>threshold</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const size_t&#160;</td>
          <td class="paramname"><em>min_inliers_for_valid_plane</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A stub for <a class="el" href="group__ransac__grp.html#gad7752b90d12df1104ea99deb81a87cb6" title="Fit a number of 3-D planes to a given point cloud, automatically determining the number of existing p...">ransac_detect_3D_planes()</a> with the points given as a <a class="el" href="classmrpt_1_1slam_1_1_c_points_map.html" title="A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors...">mrpt::slam::CPointsMap</a>. </p>

<p>Definition at line <a class="el" href="ransac__applications_8h_source.html#l00080">80</a> of file <a class="el" href="ransac__applications_8h_source.html">ransac_applications.h</a>.</p>

<p>References <a class="el" href="group__ransac__grp.html#gad7752b90d12df1104ea99deb81a87cb6">mrpt::math::ransac_detect_3D_planes()</a>.</p>

</div>
</div>
</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>