| Crates.io | contours2heightmap |
| lib.rs | contours2heightmap |
| version | 0.1.4 |
| created_at | 2025-08-30 00:51:13.048475+00 |
| updated_at | 2025-11-21 10:09:57.159117+00 |
| description | A CLI tool to convert contour line bitmap images into heightmaps. |
| homepage | |
| repository | https://github.com/Bowen951209/contours2heightmap |
| max_upload_size | |
| id | 1817132 |
| size | 94,761 |
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.

c2h --help
c2h input.png output.png --fill-mode linear --color-mode greys
git clone https://github.com/Bowen951209/contours2heightmap.git
cd contours2heightmap
cargo build --release
Install using Cargo from crates.io:
cargo install contours2heightmap
Download a release from GitHub Releases.