DIGITAL TERRAIN MODELLING. Endre Katona University of Szeged Department of Informatics

Similar documents
DIGITAL TERRAIN MODELS

Statistical surfaces and interpolation. This is lecture ten

Contents of Lecture. Surface (Terrain) Data Models. Terrain Surface Representation. Sampling in Surface Model DEM

Lecture 4: Digital Elevation Models

Blacksburg, VA July 24 th 30 th, 2010 Georeferencing images and scanned maps Page 1. Georeference

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Dijkstra's Algorithm

Session / Séance 23-D Computing and Visualizing Morphologically Sound DEMs in a Raster Environment

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Geographic Surfaces. David Tenenbaum EEOS 383 UMass Boston

Surfaces, meshes, and topology

Edge and local feature detection - 2. Importance of edge detection in computer vision

AUTOMATIC EXTRACTION OF TERRAIN SKELETON LINES FROM DIGITAL ELEVATION MODELS

Applied Cartography and Introduction to GIS GEOG 2017 EL. Lecture-7 Chapters 13 and 14

On the Selection of an Interpolation Method for Creating a Terrain Model (TM) from LIDAR Data

L7 Raster Algorithms

Geostatistics Predictions with Deterministic Procedures

Spatial Interpolation & Geostatistics

IMPROVING THE ACCURACY OF DIGITAL TERRAIN MODELS

DATA MODELS IN GIS. Prachi Misra Sahoo I.A.S.R.I., New Delhi

CPSC 695. Methods for interpolation and analysis of continuing surfaces in GIS Dr. M. Gavrilova

Georeferencing & Spatial Adjustment

What can we represent as a Surface?

Lecture 7: Most Common Edge Detectors

Spatial Interpolation - Geostatistics 4/3/2018

GEOGRAPHIC INFORMATION SYSTEMS Lecture 25: 3D Analyst

Terrain correction. Backward geocoding. Terrain correction and ortho-rectification. Why geometric terrain correction? Rüdiger Gens

[Youn *, 5(11): November 2018] ISSN DOI /zenodo Impact Factor

Implementation of Flight Simulator using 3-Dimensional Terrain Modeling

Lesson 5 overview. Concepts. Interpolators. Assessing accuracy Exercise 5

Literature review for 3D Design Terrain Models for Construction Plans and GPS Control of Highway Construction Equipment

Biomedical Image Analysis. Point, Edge and Line Detection

Georeferencing & Spatial Adjustment 2/13/2018

The Problem. Georeferencing & Spatial Adjustment. Nature Of The Problem: For Example: Georeferencing & Spatial Adjustment 9/20/2016

Investigation of Sampling and Interpolation Techniques for DEMs Derived from Different Data Sources

Visualizing Images. Lecture 2: Intensity Surfaces and Gradients. Images as Surfaces. Bridging the Gap. Examples. Examples

Representing Geography

GEOGRAPHIC INFORMATION SYSTEMS Lecture 24: Spatial Analyst Continued

Robert Collins CSE486, Penn State. Lecture 2: Intensity Surfaces and Gradients

Surface Analysis. Data for Surface Analysis. What are Surfaces 4/22/2010

SYSTEMS OF NONLINEAR EQUATIONS

Lecture 6: GIS Spatial Analysis. GE 118: INTRODUCTION TO GIS Engr. Meriam M. Santillan Caraga State University

Spatial Analysis and Modeling (GIST 4302/5302) Guofeng Cao Department of Geosciences Texas Tech University

COMPARISON OF TWO METHODS FOR DERIVING SKELETON LINES OF TERRAIN

The Problem. Georeferencing & Spatial Adjustment. Nature of the problem: For Example: Georeferencing & Spatial Adjustment 2/4/2014

Introduction to 3D Analysis. Jinwu Ma Jie Chang Khalid Duri

Improved morphological interpolation of elevation contour data with generalised geodesic propagations

COORDINATE TRANSFORMATION. Lecture 6

Surface Creation & Analysis with 3D Analyst

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Geometry Processing & Geometric Queries. Computer Graphics CMU /15-662

Brightness and geometric transformations

POSITIONING A PIXEL IN A COORDINATE SYSTEM

Training i Course Remote Sensing Basic Theory & Image Processing Methods September 2011

A new 8-node quadrilateral spline finite element

Lecture 2 Image Processing and Filtering

Lecture 9. Raster Data Analysis. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

Ulrik Söderström 16 Feb Image Processing. Segmentation

The 3D Analyst extension extends ArcGIS to support surface modeling and 3- dimensional visualization. 3D Shape Files

Iowa Department of Transportation Office of Design. Photogrammetric Mapping Specifications

EMIGMA V9.x Premium Series April 8, 2015

Chapter 18. Geometric Operations

FILTERING OF DIGITAL ELEVATION MODELS

A Method to Create a Single Photon LiDAR based Hydro-flattened DEM

Assimilation of Break line and LiDAR Data within ESRI s Terrain Data Structure (TDS) for creating a Multi-Resolution Terrain Model

Geol 588. GIS for Geoscientists II. Zonal functions. Feb 22, Zonal statistics. Interpolation. Zonal statistics Sp. Analyst Tools - Zonal.

Import, view, edit, convert, and digitize triangulated irregular networks

Using Hierarchical Warp Stereo for Topography. Introduction

Today. Gradient descent for minimization of functions of real variables. Multi-dimensional scaling. Self-organizing maps

GIS Visualization, 3D Visualization and Animation. Tomislav Sapic GIS Technologist Faculty of Natural Resources Management Lakehead University

GALILEO SISCAM APPROACH TO DIGITAL PHOTOGRAMMETRY. F. Flamigni A. Viti Galileo Siscam S.p.A.

Local Image preprocessing (cont d)

Watershed Sciences 4930 & 6920 GEOGRAPHIC INFORMATION SYSTEMS

Algorithms for GIS. Spatial data: Models and representation (part I) Laura Toma. Bowdoin College

Overview. Image Geometric Correction. LA502 Special Studies Remote Sensing. Why Geometric Correction?

Spatial Analysis (Vector) II

Massive Data Algorithmics

From Ver(ces to Fragments: Rasteriza(on

CS 565 Computer Vision. Nazar Khan PUCIT Lectures 15 and 16: Optic Flow

Geostatistics 2D GMS 7.0 TUTORIALS. 1 Introduction. 1.1 Contents

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

Accuracy of Terrain Elevation Modelling

Two Algorithms for Adaptive Approximation of Bivariate Functions by Piecewise Linear Polynomials on Triangulations

Geometric Rectification of Remote Sensing Images

Möbius Transformations in Scientific Computing. David Eppstein

RASTER ANALYSIS GIS Analysis Fall 2013

Image warping , , Computational Photography Fall 2017, Lecture 10

Problem 1 (10 Points)

The Accuracy of Determining the Volumes Using Close Range Photogrammetry

University of Technology Building & Construction Department / Remote Sensing & GIS lecture

DTM GENERATION FROM RUSSIAN TK-350 SPACE IMAGERY IN THE PC-BASED PHOTOGRAMMETRIC SYSTEM Z-SPACE

An Interpretation System for Cadastral Maps

Lecture 6: Edge Detection

Report: Comparison of Methods to Produce Digital Terrain Models

Segmentation and Grouping

Creating raster DEMs and DSMs from large lidar point collections. Summary. Coming up with a plan. Using the Point To Raster geoprocessing tool

1. Two double lectures about deformable contours. 4. The transparencies define the exam requirements. 1. Matlab demonstration

Chapter - 2: Geometry and Line Generations

Dietrich Paulus Joachim Hornegger. Pattern Recognition of Images and Speech in C++

Computer Graphics. Chapter 4 Attributes of Graphics Primitives. Somsak Walairacht, Computer Engineering, KMITL 1

Transcription:

DIGITAL TERRAIN MODELLING Endre Katona University of Szeged Department of Informatics katona@inf.u-szeged.hu

The problem: data sources data structures algorithms

DTM = Digital Terrain Model Terrain function: h(x, y) with continuous partial derivatives, excepting some special cases: the function is not continuous (bench). partial derivatives are not continuous (breakline). 2.5 dimensional modeling: not suitable for caves, for instance. Model requirements: good approximation of the real world to determine h for any (x, y)

DEM = Digital Elevation Model Raster model: matrix of height values resolution (e.g. 20 m) accuracy (e.g. 1 m) Note: DEM origin: USGS (United States Geological Survey)

b) NODE (id, x, y, z, node,..., node ) TIN = Triangulated Irregular Network Vector model Data structures: a) NODE (id, x, y, z) TRIANGLE (id, node 1, node 2, node 3,tr 1, tr 2, tr 3 ).

Contour line (level line) representation Vector approach: LINE x 1, y 1,..., x n, y n, z (2D line string with height value z) LINE x 1, y 1, z 1,..., x n, y n, z n (3D line sting with z 1 =... = z n )

DEM versus TIN DEM: simple data structure easier analysis high accuracy at high resolution high memory demand time-consuming processing TIN: restricted accuracy complex algorithms less memory required time-efficient processing

Data sources for DTM 1. Stereo aerial photos (photogrammetry) 2. Measured height values 3. Existing contour line maps

Generating TIN from height values a) Direct triangulation. b) Spatial interpolation and triangulation.

Delaunay-triangulation - 1 Given: a set of 3D nodes (x, y, z) Reduction to 2D: instead (x, y, z) we take (x, y). Prefer "fat" triangles.

Delaunay-triangulation - 2 Delaunay triangle: the circumscribing circle does not contain further node. Delaunay-triangulation: each triangle is a Delaunay-triangle. Voronoi diagram: a set of disjoint territories. Each node has a territory. Each point in the plane is classified into the territory of the closest node. Nodes with neighboring territories can be connected by an edge.

Generating TIN from contour line maps

Part of a scanned contour line map (before processing)

Generating TIN from contour lines -2 Processing steps: 1. Scanning the contour line map sheet. 2. Manual correction (eliminating gaps and junctions, handle special notations). 3. Vectorization (manual or automatic), we get a set of nodes and edges as a result. 4. Assigning a height value to each contour line (manual or half-automatic). 5. Assigning triangles between contour lines (Delaunayalgorithm).

Generating TIN from contour lines -3 Problem: flat areas at mountain peaks, at ridges. Solution: spatial interpolation.

Spatial interpolation Consider a terrain function f(x, y). Given: f(x 1, y 1 ) = h 1,..., f(x m, y m ) = h m Problem: estimating f(x, y) in other points. Solutions: Inverse distance weighted moving average Polynomial interpolation

Inverse distance weighted moving average Given: height values h 1,..., h m at points P 1,..., P m Unknown: height value h of a given point P. Estimation: h = (h 1 /d 1 +... + h m /d m ) / (1/d 1 +... + 1/d m ) where d i is the distance between P i and P. Properties: Good for ridges. Flat areas at peaks. Local maxima and minima may occur only at given points.

Polynomial interpolation Given: f(x 1, y 1 ) = h 1,..., f(x m, y m ) = h m Task: approximate f(x, y) with a polynomial p(x, y) of degree r. For example, if r = 2: p(x, y) = a 00 + a 10 x + a 01 y + a 20 x 2 + a 11 xy + a 02 y 2 Solution: Coefficients a i,j are determined by least squares method: E = Σ i (p(x i,y i ) h i ) 2 min. Properties: Local maxima or minima may occur not only at given points. Expensive procedure for contour lines (too many given points) Physical terrain features are not considered.

Generating DEM from contour line maps Solutions: The Intercon method Variational spline interpolation

The Intercon method (IDRISI) Place a regular grid on contours. Create cross-sections along horizontal, vertical and diagonal lines of the grid. Calculate height and slope values for each grid point (by linear interpolation). Heuristics: choose the height value belonging to the maximum slope.

The Intercon method - 2 Disadvantages: Local maxima and minima may occur only at given points. Interrupted contour lines may cause significant distortions. Single elevation points cannot be handled.

Variational spline interpolation Source data: contour line map, and/or a set of elevation points. Target data: DEM matrix Preprocessing of contour lines: Scanning of contour line map sheets. Manual editing of the scanned raster image. Contour line thinning. Assigning height values to contour lines.

Variational spline interpolation - 2 Initial DEM matrix (X denotes unknown point): X X 200 X X 240 X X X X X 200 X X X 240 X X X X X 200 X X X 240 X X X 280 200 X X X 240 X X X 280 X X X X 240 X X X 280 X X X 240 240 X X X 280 X X X 240 X X X X X 280 X X X X X X 253 X X X 280 X X X X X X X X X X 280 280

Variational spline interpolation - 3 Continuous case Given: f(x 1, y 1 ) = d 1,..., f(x m, y m ) = d m Task: approximate f(x, y) with a minimum energy function. General energy functional of degree r: dy dx y x f i r f E i r i r r i r = = 2 0 ) (

Variational spline interpolation - 4 Membrane model: It tends to minimize the surface area. (Partial derivatives are not continuous)

Variational spline interpolation - 5 Thin plate model: t tends to minimize he surface curvature. Continuous partial erivatives)

Variational spline interpolation - 6 Membrane model Continuous case: min Discrete case (matrix Z instead of function f(x,y)): E Z1 = Σ i Σ j [ (z i,j+1 z i,j ) 2 + (z i+1,j z i,j ) 2 ] To find the minimum of E 1 Z, take the partial derivatives for any i, j: E Z1 / z i,j = 8z i,j 2z i+1,j 2z i 1,j 2z i,j+1 2z i,j 1 = 0

Variational spline interpolation - 7 After dividing by 2: 4z i,j z i+1,j z i 1,j z i,j+1 z i,j 1 = 0 for any i, j. Linear equation system. Solution with Jacobi-iteration repeated convolution with mask 1/4 1/4 0 1/4 1/4 Note: Given points are kept fixed during convolution.

Variational spline interpolation - 8 Thin plate model Continuous case: min Discrete case (matrix Z instead of function f(x,y)): E Z2 = Σ i Σ j [(z i+1,j 2z i,j + z i 1,j ) 2 + + 2(z i+1,j+1 z i,j+1 z i+1,j + z i,j ) 2 + (z i,j+1 2z i,j + z i,j 1 ) 2 ]

Variational spline interpolation - 9 To find the minimum of E 2 Z, take the partial derivatives: E Z2 / z i,j = 2z i+2,j + 4z i+1,j+1 16z i+1,j + 4z i+1,j 1 + + 2z i,j+2 16z i,j+1 + 40z i,j 16z i,j 1 + 2z i,j 2 + + 4z i 1,j 1 16z i 1,j + 4z i 1,j+1 + 2z i 2,j = 0 Linear equation system. 1 In a more expressive form 2 8 2 (after dividing by 2): 1 8 20 8 1 2 8 2 1

Variational spline interpolation 10 1 2 8 2 1 8 12 8 1 2 8 2 1 32 1 Solution with Jacobi-iteration repeated convolution with mask Notes: Given points are kept fixed during convolution. Convergence of masks can be studied by Fourier-analysis.

Variational spline interpolation - 11 Sample initial matrix for the iteration: (Each unknown point gets the value of the nearest contour line.) Algorithm: modified distance transform

Variational spline interpolation - 12 Membrane model after 40 iterations: Fast convergence

Variational spline interpolation - 13 Thin plate model after 500 iterations:

Variational spline interpolation 14 Thin plate model after 5000 iterations: Very slow convergence! The solution: multigrid method

The multigrid method Basic idea: 1. Create a reduced matrix R from Z by averaging data points. If a tile does not contain a data point, the corresponding reduced pixel will be undefined. Z R

The multigrid method - 2 Basic idea (continued): 2. Give initial values to undefined elements of R. 3. Perform iteration for R. Convergence is faster because of the reduced matrix size. The result is denoted by R*. 4. Give initial values to undefined pixels in Z by enlarging R* to the original size.

The multigrid method - 3 Example: initial terrain gained from an 8-reduced matrix

Remember: initial terrain used previously The multigrid method - 4

The multigrid method - 5 The multigrid principle: Use a hierarchy of reduced matrices: R 0 of size 1 x 1 R 1 of size 2 x 2 R 2 of size 4 x 4... R n =Z of size 2 n x 2 n

The multigrid method - 6 Multigrid algorithm: The original contour matrix Z is of size 2 n x2 n. 1. Create R 0 of size 1 x 1 from Z (by averaging all the data points). 2. Create R 1 of size 2 x 2 from Z by reduction. Unknown pixels of R 1 get initial values from R 0. Iterate for R 1, the result is R 1 *. 3. Create R 2 of size 4 x 4 from Z by reduction. Unknown pixels of R 2 get initial values from R 1 *. Iterate for R 2, the result is R 2 *. 4. Continue the procedure until R n =Z. Unknown pixels of R n get initial values from R n-1 *. Iterate for R n, the result is R n *.

The multigrid method - 7 Conclusion: Only 10-40 iterations are needed at each multigrid level, even in the case of thin plate model! Time and memory required: T = t + t/4 + t/16 +... + t/4n < 4t/3

Variational spline interpolation with multigrid Summary for thin plate: Local maxima or minima may occur not only at given points. It is efficient if multigrid method is applied. Physical terrain features can be considered in some sense.

References - 1 Brand, K., 1982, Multigrid bibliography. In Multigrid Methods, edited by W. Hackbusch and U. Trottenberg, Lecture Notes in Mathematics Vol. 960 (Springer- Verlag), pp. 631-650. Carrara, A., Bitelli, G., and Carla, R., 1997, Comparison of techniques for generation digital terrain models from contour lines. Internat. Journal of Geographical Information Science, 11, 451-473. Hutchinson, M. F., 1989, A new procedure for gridding elevation and stream-line data with automatic removal of spurious pits. Journal of Hydrology, 106, 211-232.

References - 2 Lam, S.-N., 1983, Spatial interpolation methods a review. The American Cartographer, 10, 129-149. Terzopoulos, D., 1983, Multilevel Computational Processes for Visual Surface Reconstruction. Computer Vision, Graphics and Image Processing, 24, 52-96. E. Katona: Contour line thinning and multigrid generation of raster-based digital elevation models. Internat. Journal of Geographical Information Science (Taylor and Francis, London), 2006.