GithubHelp home page GithubHelp logo

helga-helga / stereo-vision Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 234 KB

Implementation of algorithms for stereo vision

License: MIT License

Rust 97.07% Python 2.93%
coordinate-descent depth-map dynamic-programming python rust stereo-vision

stereo-vision's People

Contributors

helga-helga avatar

Watchers

 avatar

stereo-vision's Issues

Build a depth map using a stereopair

After diffusion is done, take the lightest vertex in each pixel: for each pixel (i, j) find disparity value d that gives the smallest value vertex_penalty_with_potentials(i, j, d). Minimum vertex weight for pixel is calculated in min_penalty_vertex() function. This function can be used but should be updated to return not only a vertex weight min_penalty_vertex, but also a disparity value d.

Then draw a matrix which size match a size of an input image and has disparities as values:

  • dark pixel will denote that a pixel in an input image is far away (is deep)
  • light pixel will denote that a pixel in an input image is close to the camera

Add CI

  • Investigate Travis CI for Rust
  • Configure GitHub and Travis CI integration
  • Add config file for CI
  • Add status image in README.md

Make penalty fixed if disparities difference is big

Big disparity means that two neighbor pixels are related to different objects.

For example, there is an object in the front of the wall. On the border between the object and the wall there will be a big disparity (consequently, a big penalty). And the far the wall is, the bigger is the penalty. It's normal situation, when objects has different distance from camera. But there is a big penalty for such a situation in a program.

TODO: If |d_1 - d_2| > c, then fix the penalty, so that it won't be dependent on d_1 and d_2,
where d_1 and d_2 are disparities of neighbor pixels and c is some constant.

Will the problem be still sub-modular?

Fix failed test: penalty_graph::penalty_graph::test_penalty_four_pixels

An error could occur after changes in edge_penalty_with_potential() function (not all neighbors are used when calculating a penalty). Probably, the test should be updated.

---- penalty_graph::penalty_graph::test_penalty_four_pixels stdout ----
thread 'penalty_graph::penalty_graph::test_penalty_four_pixels' panicked at 'assertion failed: `(left == right)`
  left: `4.0`,
 right: `2.0`', src/penalty_graph.rs:393:9

Check and fix tests for crossing out

Add tests for the next functions:

  • initialize_vertices()
  • initialize_edges()
  • initialize_with_epsilon()
  • crossing_out()
  • is_not_empty()
  • vertices_exist()
  • edges_exist()
  • min_vertex_between_existing()
  • cross_vertex()
  • find_best_labeling()

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.