contours2heightmap

Crates.iocontours2heightmap
lib.rscontours2heightmap
version0.1.1
created_at2025-08-30 00:51:13.048475+00
updated_at2025-08-30 00:59:26.499557+00
descriptionA CLI tool to convert contour line bitmap images into heightmaps.
homepage
repositoryhttps://github.com/Bowen951209/contours2heightmap
max_upload_size
id1817132
size222,838
bowen951209 (Bowen951209)

documentation

README

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 linear_greys linear_viridis linear_turbo flat_magma

Example

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

Build from source

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

Installation

Commit count: 115

cargo fmt