contours2heightmap 0.1.0

A CLI tool to convert contour line bitmap images into heightmaps.
Documentation
# contours2heightmap (c2h)


A simple CLI tool to convert contour line bitmap images into heightmaps.

Assumes a topographic interpretation where outer contours represent lower elevations and inner contours represent higher elevations.

Only supports simple images: all contours must be closed, non-overlapping, and with clear separation.

![contour](gallery/turtle_island_contour.jpg)
![linear_greys](gallery/turtle_island_linear_greys.png)
![linear_viridis](gallery/turtle_island_linear_viridis.png)
![linear_turbo](gallery/turtle_island_linear_turbo.png)
![flat_magma](gallery/turtle_island_flat_magma.png)

## Example


```bash
c2h --help
c2h input.png output.png --fill-mode linear --color-mode greys
```

## Build from source


```bash
git clone https://github.com/Bowen951209/contours2heightmap.git
cd contours2heightmap
cargo build --release
```

## Installation


TODO: crates io installation; download from release