Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabriel-kahen/easyvga

Perform a visibility graph analysis quickly and easily. Visibility calculation done in C.
https://github.com/gabriel-kahen/easyvga

depthmap depthmapx easyvga open-street-map open-street-maps openstreetmap openstreetmaps vga visibility visibility-analysis visibility-graph visibility-graph-algorithm visibility-graph-analysis

Last synced: about 1 month ago
JSON representation

Perform a visibility graph analysis quickly and easily. Visibility calculation done in C.

Awesome Lists containing this project

README

        

# Visiblity Graph Analysis Overview

This code performs a simple [visiblity graph analysis](https://en.wikipedia.org/wiki/Visibility_graph_analysis). The further to the right on the colormap below, the more visible the point.

![jetcolormap](https://i.imgur.com/QLmNLR2.png)

## Examples

### Four-way intersection
- **Input:** `test_imgs/four_in.png`
- **Output:** `test_imgs/four_out.png`

| Input Image | Output Image |
|-------------|--------------|
| | |

### Rectangles
- **Input:** `test_imgs/rectangles_in.png`
- **Output:** `test_imgs/rectangles_out.png`

| Input Image | Output Image |
|-------------|--------------|
| | |

### Floor Plan
- **Input:** `test_imgs/floorplan_in.png`
- **Output:** `test_imgs/floorplan_out.png`

| Input Image | Output Image |
|-------------|--------------|
| | |

### Streets (using coordinates)
- Coordinate Input: 40.7611, -73.6533 | 40.7490, -73.6773 | (shown in `test_imgs/streets_in.png`)
- **Output:** `test_imgs/streets_out.png`

| Input | Output Image |
|-------------|--------------|
| | |

## Usage

To use the code, simply run `run.py`.
I recommend [Open Street Map](https://www.openstreetmap.org/export) for finding coordinates, but you can use whatever you prefer.