Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gabriel-kahen/easyvga
- Owner: Gabriel-Kahen
- Created: 2024-08-08T02:12:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T22:07:04.000Z (5 months ago)
- Last Synced: 2024-11-21T20:05:53.276Z (about 1 month ago)
- Topics: depthmap, depthmapx, easyvga, open-street-map, open-street-maps, openstreetmap, openstreetmaps, vga, visibility, visibility-analysis, visibility-graph, visibility-graph-algorithm, visibility-graph-analysis
- Language: Python
- Homepage:
- Size: 3.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.