Code Monkey home page Code Monkey logo

affine-correspondences-for-camera-geometry's Introduction

Making Affine Correspondences Work in Camera Geometry Computation

The framework proposed in paper: Barath, Daniel, et al. Making Affine Correspondences Work in Camera Geometry Computation. ECCV 2020. It is available at https://www.ecva.net/papers/eccv_2020/papers_ECCV/papers/123560698.pdf

Installation C++

To build and install only the C++ implementation of the framework, clone or download this repository and then build the project by CMAKE.

$ git clone --recursive https://github.com/danini/affine-correspondences-for-camera-geometry.git
$ cd build
$ cmake ..
$ make

Install Python package and compile C++

The framework contains a Python binding and Jupyter Notebook examples. To compile with Python the following should be done.

python3 ./setup.py install

or

pip3 install -e .

Example project

To build the sample project showing examples of fundamental matrix, homography and essential matrix fitting, set variable CREATE_SAMPLE_PROJECT = ON when creating the project in CMAKE. Then

$ cd build
$ ./SampleProject

Jupyter Notebook example

The example for homography fitting is available at: link.

The example for fundamental matrix fitting is available at: link.

The example for essential matrix fitting is available at: link.

Requirements

  • Eigen 3.0 or higher
  • CMake 2.8.12 or higher
  • OpenCV 3.0 or higher
  • A modern compiler with C++17 support

Acknowledgements

When using the algorithm, please cite Barath, Daniel, et al. "Making Affine Correspondences Work in Camera Geometry Computation". Proceedings of the IEEE European Conference on Computer Vision. 2020.

If you use it with Graph-Cut RANSAC, please cite Barath, Daniel, and Matas, Jiří. "Graph-cut RANSAC." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2018.

affine-correspondences-for-camera-geometry's People

Contributors

danini avatar ducha-aiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

affine-correspondences-for-camera-geometry's Issues

Add option for minimal number of iterations

Hi!
I'm having issues with pyrobustac terminating too early no matter how high high I set the confidence threshold.
I'm basically having termination after 20 iterations (up to 50 iterations if I set confidence to 1-1e-15), which is too low.

I think these issues are due to affine correspondences needing fewer samples -> (1-p^2) or (1-p^3) instead of (1-p^5).

I think my concerns could easily be addressed by adding a minIter argument, to force ransac to run for longer.

Missed includes (?) in CMakeLists.txt

Hi!

Here:

include_directories (
${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include
${PROJECT_SOURCE_DIR}/lib
)

You seem to include only the top level includes for graph-cut-ransac, which for some reason doesn't recurse down (I don't really know anything about cmake).
On my system, I had to include the following:

include_directories (
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include/estimators
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include/neighborhood
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include/preemption
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include/relative_pose
	${PROJECT_SOURCE_DIR}/lib/graph-cut-ransac/src/pygcransac/include/samplers
	${PROJECT_SOURCE_DIR}/lib
)

to compile pyrobustac (both for c++ and using pip). Maybe cmake is confused?

AC refinement

Hello,
Thanks for sharing your code. Does this repository contain the code for affine correspondence refinement ("least squares matching") described in the paper? I couldn't find it but maybe I wasn't looking in the right place.
Thanks,
Jonathan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.