# GRANSAC **Repository Path**: hh_1993/GRANSAC ## Basic Information - **Project Name**: GRANSAC - **Description**: 搬运 https://github.com/drsrinathsridhar/GRANSAC - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GRANSAC: Multi-threaded generic RANSAC implemetation This is a header-only, multi-threaded implementation of the [RANSAC algorithm](https://en.wikipedia.org/wiki/RANSAC), used widely in computer vision. Unlike most other implementations, this is a **generic** implementation which can be adopted for any problem. The user has to implement a class that inherits the AbstractModel class. Using RANSAC afterwards should just work. ## Dependencies This library uses *C++11* features, so a suitable compiler is required (GCC 4.7+, Visual Studio 2013+). Additionally, *OpenMP* is needed for multi-threading. Optionally, to build the line fiting example, *OpenCV* and *CMake* are required. ## Usage Just include the header GRANSAC.hpp in your application. The AbstractModel class needs to be inherited to implement a suitable model for your application. ## Example: Line Fitting To demonstrate how to use the library a line fitting example is included. To build this example do the following: ```bash $ pwd /GRANSAC $ mkdir build && cd build $ cmake ../examples/ $ make $ ./LineFittingSample 1000 500 ``` Running LineFittingSample should display a window with random 2D points around the diagonal. Green points show inliers. ![RANSAC line fitting example](https://raw.githubusercontent.com/srinath1905/GRANSAC/master/examples/LineFitting.png) ## License GRANSAC is released under an [MIT License](https://opensource.org/licenses/MIT). ## Contact Srinath Sridhar (srinaths@umich.edu) Max Planck Institute for Informatics