.. _example_plot_ransac.py:


=========================================
Robust line model estimation using RANSAC
=========================================

In this example we see how to robustly fit a line model to faulty data using
the RANSAC algorithm.


.. image:: images/plot_ransac_1.png
    :align: center


.. literalinclude:: plot_ransac.py
    :lines: 10-



**Python source code:** :download:`download <plot_ransac.py>`
(generated using ``skimage`` |version|)



**IPython Notebook:** :download:`download <./notebook/plot_ransac.ipynb>`
(generated using ``skimage`` |version|)

