This does the following :
- opening a local TerrainRGB png image, using
pixpipe.FileImageReader
- converting it into a
pixpipe.Image2D
object
- compute the elevation map with
pixpipe.TerrainRgbToElevationImageFilter
object
- display it in a canvas using
pixpipe.CanvasImageWriter
To know more about the TerrainRGB image format, read Mapbox's article.
Select an image file: