Giter Site home page Giter Site logo

jeremykawahara / cloudtogrid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kylemcdonald/cloudtogrid

0.0 2.0 0.0 3.83 MB

Example of converting a 2d point cloud to a 2d grid via the assignment problem.

License: Other

Jupyter Notebook 100.00%

cloudtogrid's Introduction

CloudToGrid

This repo shows how to map one point cloud to another; for example, creating a 2d grid embedding of a t-SNE point cloud.

This repo uses lapjv wrapper for Jonker's implementation of the Jonker-Volgenant algorithm as well as hungarian, which are both solutions to the "assignment problem", a combinatorial optimization problem that asks: how do you assign workers to tasks in a way that minimizes the overall cost? For CloudToGrid, the "task" is point correspondence, and the cost of each correspondence is the squared distance between the original and destination point. The Jonker-Volgenant algorithm is a less tolerant but more efficient solution than the traditional Hungarian Algorithm.

The Jonker-Volgenant algorithm implementation used here can fail when the difference between two costs is very small, and both algorithms can fail when the costs are all small.

Installation and Usage

First, install numpy, scipy, sklearn, matplotlib, lapjv and hungarian using the requirements file:

$ pip install -r requirements.txt

Then clone this repository and run the example:

$ git clone https://github.com/kylemcdonald/CloudToGrid.git
$ cd CloudToGrid
$ jupyter notebook

Acknowledgement

This repository is inspired by Mario Klingemann's Raster Fairy work.

cloudtogrid's People

Contributors

kylemcdonald avatar

Watchers

James Cloos avatar Jeremy Kawahara avatar

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.