A fast python library for generating topographic contour maps from heightmaps and images.
Project description
Contour Heightmap
A fast python library for generating contour maps from heightmaps and images.
Given an image file (preferably RGB PNG), it will output a PNG with topographic contour lines and an SVG file of the contour lines.
Quick Start
How do I contour an image?
from contourheightmap import ContourHeightmap
c = ContourHeightmap()
c.contour("path/to/heightmap.png")
Result will be in output.png and output.svg
How do I provide an output filename?
from contourheightmap import ContourHeightmap
c = ContourHeightmap()
c.contour("path/to/heightmap.png", "path/to/output.png")
Output will also be in path/to/output.svg
How do I output a contoured image from the command line?
contourheightmap.sh examples/heightmap.png
Result will be in output.png
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
contourheightmap-1.0.1.tar.gz
(3.0 kB
view hashes)