Giter Club home page Giter Club logo

undistort's Introduction

undistort

Computes an undistortion table using locally-weighted homographies. The method used is described in:

Locally-weighted Homographies for Calibration of Imaging Systems
Pradeep Ranganathan and Edwin Olson

Quickstart with Docker

Use the provided Dockerfile to build a docker image and run this code inside it.

docker build -t undistort .
docker run --rm -it \
    undistort /code/undistort.py --scale=1.5 /code/examples/example.png

The command above writes the output files to the container's internal filesystem, which is not easily accessible from the host. One way to work around this is to mount the host examples folder into the container.

docker run --rm -it                       \
    -v $PWD/examples/:/code/examples/     \
    undistort /code/undistort.py --scale=1.5 /code/examples/example.png

This command runs the undistortion script on the examples/example.png and produces the undistortion table examples/example.png.table and rectified image examples/example.fixed.png.

The produced .table file can be used to undistort other images using the examples/render_undistorted.py script.

Notes

The file examples/example.png is an example of an ideal image for estimating distortion. It provides features that can cover the entire image. The non-parametric nature of the distortion model makes it data-intensive -- the model is accurate near observed data points. Hence an image with detections that covers the entire image produces better models.

The file examples/bad_example.png is an example of an image that might not produce a good distortion model.

undistort's People

Contributors

memorydump85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

skn123

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.