Geometric Correction of Imagery

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Working with Map Projections
A guide to coordinate systems, datums, projections, and geoids.
NAPP Photo Five Pockets near Dubois. Google Earth.
Projections.
With support from: NSF DUE in partnership with: George McLeod Prepared by: Geospatial Technician Education Through Virginia’s Community Colleges.
Map Projections & Coordinate Systems
Applied Cartography and Introduction to GIS GEOG 2017 EL
Coordinate Systems, Datums and Map Projections D’Arcangelis 11/9/09
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Akm.
CS 128/ES Lecture 2b1 Coordinate systems & projections.
Geog 458: Map Sources and Error January 18, 2006 Georeferencing.
Map Projections Francisco Olivera, Ph.D., P.E. Srikanth Koka
Map projections CS 128/ES Lecture 3a.
Modern Navigation Thomas Herring
Geographic Information Systems
Conversion from Latitude/Longitude to Cartesian Coordinates
Projections and Coordinate Systems
Introduction.
Map Projections Displaying the earth on 2 dimensional maps
Introduction to ArcGIS for Environmental Scientists Module 2 – GIS Fundamentals Lecture 5 – Coordinate Systems and Map Projections.
Overview Ellipsoid Spheroid Geoid Datum Projection Coordinate System.
Concept of Map Projection Presented by Reza Wahadj University of California,San Diego (UCSD)
GIS for Environmental Engineering
Georeferencing Getting maps and satellite images into GIS.
1 Image Pre-Processing. 2 Digital Image Processing The process of extracting information from digital images obtained from satellites Information regarding.
Image Registration January 2001 Gaia3D Inc. Sanghee Gaia3D Seminar Material.
Geographic Information Systems Coordinate Systems.
Spatial Concepts Mathematical Types of Space –Euclidean –Network –Metric –Topologic.
Geometric Correction It is vital for many applications using remotely sensed images to know the ground locations for points in the image. There are two.
Remote Sensing Image Rectification and Restoration
CORSE '07 Spatial Data Spatial data comes in many forms. So How does a GIS work with the data so that it can put the data in the right place on a map?
shops/gis/docs/projections.ppt.
NAPP Photo Five Pockets near Dubois.
GEOREFERENCING By Okan Fıstıkoğlu. GEOGRAPHIC COORDINATE SYSTEMS Geographic Coordinate System (GCS) uses a three dimensional spherical surface to define.
Orthorectification using
Image Preprocessing: Geometric Correction Image Preprocessing: Geometric Correction Jensen, 2003 John R. Jensen Department of Geography University of South.
Model Construction: interpolation techniques 1392.
Map Projections RG 620 Week 5 May 08, 2013 Institute of Space Technology, Karachi RG 620 Week 5 May 08, 2013 Institute of Space Technology, Karachi.
Cartography: the science of map making A Round World in Plane Terms.
Map Projections Reference Globe Transformation Map Projection Reference Ellipsoid Sphere of Equal Area Geoid 3D-2D Transformation Process.
February 3 Interpretation of Digital Data Bit and Byte ASCII Binary Image Recording Media and Formats Geometric corrections Image registration Projections.
Map Basics, partII GEOG 370 Christine Erlien, Instructor.
Digital Image Processing Definition: Computer-based manipulation and interpretation of digital images.
L 5 Map Projections Lecture Map projections are used to transfer or “project” geographical coordinates onto a flat surface.. There are many projections:
URBDP 422 URBAN AND REGIONAL GEO-SPATIAL ANALYSIS Lecture 3: Building a GeoDatabase; Projections Lab Session: Exercise 3: vector analysis Jan 14, 2014.
Principle Component Analysis (PCA)
The Round Earth to Flat Map: Map Projections for Designers SP 240 Cartography Alex Chaucer.
Map projections and datums
Map Projections Goal: translate places on the Earth (3D) to Cartesian coordinates (2D)
Chapter 3- Coordinate systems A coordinate system is a grid used to identify locations on a page or screen that are equivalent to grid locations on the.
Map Projections, Cartographic Concepts -Map Projections -Coordinate Systems.
Review of Projections and Coordinate Systems
Geometric Correction of Remote Sensor Data
Map Projections RG 620 May 16, 2014 Institute of Space Technology, Karachi RG 620 May 16, 2014 Institute of Space Technology, Karachi.
Chapter 11 Coordinate Systems. Outline About coordinate systems Geographic coordinate systems Projected coordinate systems Raster coordinate systems Common.
Geometric Preprocessing
Distortions in imagery:
Coordinate Systems and Map Projections
NAPP Photo Five Pockets near Dubois.
Georeferencing Ming-Chun Lee.
Projections and Coordinate Reference Systems
Overview Ellipsoid Spheroid Geoid Datum Projection Coordinate System.
A guide to coordinate systems, datums, projections, and geoids.
Maps Base maps Coordinate Systems, Datums, Projections
Map Projections Displaying the earth on 2 dimensional maps
Lecture 3 Map Projections
A guide to coordinate systems, datums, projections, and geoids.
Map Projections Displaying the earth on 2 dimensional maps
Michael L. Dennis, RLS, PE G67940_UC15_Tmplt_4x3_4-15
Presentation transcript:

Geometric Correction of Imagery Lecture 4 prepared by R. Lathrop 10/99 updated 2/08 Readings: ERDAS Field Guide 6th Ed. Ch 9, 12 App B Map Projections

Where in the World?

Learning objectives Remote sensing science concepts Math Concepts Projection and Coordinate Transformations Registration vs. Rectification 2D vs. 3D rectification Resampling Math Concepts Polynomial equations Root mean square error and geometric accuracy measures Skills Registration/rectification/resampling process

Geometric Correction of Imagery The intent is to compensate for the distortions introduced by a variety of factors, so that corrected imagery will have the geometric integrity of a planimetric map. Systematic distortions (e.g., curvature of the earth, the sensor etc.): predictable; corrected by mathematical formulas. These often corrected during preprocessing. Nonsystematic or random distortions: corrected statistically by comparing with ground control points. Often done by end-user Geometric correction includes systematic distortions (e.g., distortion resulted from the curvature of the Earth and the sensor be used) and nonsystematic or random distortions (by Rectification techniques to deal with).

Some basic terminology --Map projections

Map of NJ Pinelands under different projections What went wrong?

Map Projections A map projection system is any system designed to represent the surface of a sphere or spheroid (such as the Earth) on a plane, i.e., the manner in which the spherical (3d) surface of the Earth is represented on a flat (2-d) surface. Reprojection: transformation from one projection system to another using a standard series of mathematical formulas

Map Projections Think about lighting up the interior of a transparent globe that has lines and features boundaries drawn on its surface. If the lighted globe is placed near a blank wall, you can see the shadow of the globe’s map on the wall. You will have “projected” a 3d surface to a 2d surface. All projections involve some form of distortion

Map Projections Think about lighting up the interior of a transparent globe that has lines and features boundaries drawn on its surface. If the lighted globe is placed near a blank wall, you can see the shadow of the globe’s map on the wall. You will have “projected” a 3d surface to a 2d surface. All projections involve some form of distortion

Properties of Map Projections Conformality: preserves shape of small areas Equivalence: preserves areas, not shape Equidistance: scale of distance constant True direction: preserves directions, angles There is no single “perfect” map projection, all projections require some form of compromise

Families of Map Projections Cylindrical Conical Azimuthal Distortion is minimized along the line of contact Tangent: intersect along one line Secant: intersects along two lines Graphic from www.pobonline.com

Factors in Choosing a Map Projection Type of map Size and configuration of area to be mapped Location of map on globe: tropics, temperate or polar regions Special properties that must be preserved Types of data to be mapped Map accuracy Scale

Universal Transverse Mercator (UTM) UTM is a planar coordinate system Globe subdivided into 60 zones - 6o longitude wide Referenced as Eastings & Northings, measured in meters Graphics from: http://mac.usgs.gov/mac/isb/pubs/factsheets/fs07701.html

State Plane Coordinate system State Plane is a planar-rectangular coordinate system Each state has its own coordinate system oriented to the particular shape of the state. SP based on a conformal map projection. Referenced as X & Y coordinates, measured in feet Graphics from : www.pobonline.com/CDA/Article_Information/GPS_Index/1,2459,,00.html

Other Considerations Spheroid: the Earth isn’t a true sphere. Most projections require the definition of a spheroid (or ellipsoid), which is a model of the earth’s shape. Choose the spheroid appropriate for your geographic region (e.g., Clarke_1866). Datum: reference elevation, determined by National Geodetic Survey (e.g., NAD83, WGS84) Minor axis Major axis

Types of Coordinates Geographical: spherical coordinates based on the network of latitude and longitude lines, measured in degrees Planar: Cartesian coordinates defined by a row and column position on a planar (X,Y) grid, measured in meters or feet. Examples include: Universal Transverse Mercator (UTM) and State Plane

Latitude and Longitude Coordinates Spherical coordinates are based on the network of latitude (N-S) and longitude lines (E-W), measured in angular degrees Latitude lines or parallels Longitude lines or meridians Graphics from: http://www-istp.gsfc.nasa.gov/stargaze/Slatlong.htm

Coordinate Transformations Georeferencing refers to the process of assigning map coordinates to image data. Transformation equation allows the reference coordinates for any data file location to be precisely estimated in a different coordinate system.

Transforming from one Coordinate System to Another: What transformations need to be accomplished? x,y : map X’, Y’ : image Map Image

What transformations need to be accomplished? Rotate Map Image

What transformations need to be accomplished? Scale Map Image

What transformations need to be accomplished? Translate Map Image

Transformation Equation To transform from the data file coordinates to a reference coordinate system requires a change in: Scale Rotation Translation

Example: Transformation Equation from Jensen 1996 p 133 How to put this transformation into a mathematical equation. X’ = -382.08 + 0.034187x - 0.005481y Y’ = 130162 - 0.005576x - 0.0349150y x,y : map X’, Y’ : image

Example: Transformation Equation from Jensen 1996 p 133 X’ = -382.08 + 0.034187x - 0.005481y Y’ = 130162 - 0.005576x - 0.0349150y x,y : map X’, Y’ : image Given an x, y location, compute the X’, Y’ location. x = 598,285 E y = 3,627,280 N X’ = -382.08 + 20453.5 - 19881.1 = 190.3 Y’ = 130162 - 3336.0 - 126646.5 = 180

Calculating Transformation Equations The statistical technique of least squares regression is generally used to determine the coefficients for the coordinate transformation equations. Want to minimize the residual error (RMS (root mean square) error) between the predicted (X’) and observed (X’orig) locations RMS error = SQRT[(X’ - X’orig)2 + (Y’ - Y’orig)2]

Geometric Correction of imagery -- Registration and Rectification

Registration vs. Rectification Registration: reference one image to another of like geometry (i.e. same scale) Rectification: process by which the geometry of an image area is made planimetric by referencing to some standard map projection. Registration and rectification involve similar sets of procedures. Both registration and rectification require some form of coordinate transformation. Many references to rectification may also apply to image-to-image registration. In many cases, images of one area that are collected from different sources must be used together. To be able to compare separate images pixel by pixel, the pixel grids of each image must conform to the other images in the data base. The tools for rectifying image data are used to transform disparate image to the same coordinate systems. Registration is the process of making an image conform to another image. A map coordinate system is not necessarily involved. For example, image A is not rectified and it is being used with Image B, then image B must be registered to image A so that they conform to each other. In the example, image A is rectified to a particular map projection, so there is no need to rectify image B to a map projection. Rectification is the process of transforming the data from one grid system into another grid system using geometric techniques. Since the pixels of the new grid may not align with pixels of the original grid, the pixels must be resampled. Resampling is the process of extrapolating data values for the pixels on the new grid from the values of the sources pixels.

When to do rectification Whenever accurate area, direction and distance measurements are required, rectification is required. Integration of the image to a GIS: need to be able to georeference an individual’s pixel location to its true location on the Earth’s surface. Standard map projections: Lat/long, UTM, State Plane Before rectifying the image data, you must determine the appropriate coordinate system for the data base. Rectification, by definition, involves georeferencing, since all map projection systems are associated with map coordinates.

Rectification Process (Registration process is similar) How? Locate ground control points Compute and test a coordinate transformation matrix. Iterative process till required RMS error tolerance is reached. Create an output image in the new coordinate system. The pixels must be resampled to conform to the new grid.

Ground Control Points (GCP) Ground control points (GCPs): locations that are found both in the image and in the map The GCP coordinates are recorded from the map and from the image and then used in the least squares regression analysis to determine the coordinate transformation equations Want to use features that are readily identifiable and not likely to move, e.g., road intersections DONOT confuse GCP with GRC(ground resolution cell) in the 1st lecture.

Ground Control Points (GCP) Map Image x y X’ Y’

1st order transformation Also referred to as an affine transformation X’ = ao + a1x + a2y X’,Y’ = image Y’ = bo + b1x + b2y x, y = map ao, bo: for translation a1, b1: for rotation and scaling in x direction a2, b2: for rotation and scaling in y direction 6 unknowns, need minimum of 3 GCP’s difference in scale in X & Y, true shape not maintained but parallel lines remain parallel A general rule of thumb is to use a first-order affine polynomial whenever possible. Select a higher-order polynomial (second or third order only) when there are serious geometric errors in the dataset. These types of error are often found in imagery obtained from suborbital aerial platforms where roll, pitch, and yaw by the aircraft introduce unsystematic, non-linear distortions.

2nd order polynomial X’ = ao + a1x + a2y + a3x2+ a4y2 + a5xy Y’ = bo + b1x + b2y + b3x2+ b4y2 + b5xy 12 unknowns, need minimum of 6 GCP’s nonlinear differences in scale in X & Y, true shape not maintained, parallel lines no longer remain parallel Higher order polynomials are different than rubber sheeting

Minimum of GCP’s Higher orders of transformation can be used to correct more complicated types of distortion. However, to use a higher order of transformation, more GCP’s are needed. The minimum number of GCP’s required to perform a transformation of order t equals: ( ( t + 1 ) ( t + 2 ) ) 2 t Order Min. # of GCP’s 1 3 2 6 3 10 4 15

Root Mean Square (RMS) Error RMS Error per GCP, Ri: Ri = SQRT( XRi2 + YRi2) where Ri = RMS Error per GCPi XRi = X residual for GCPi YRi = Y residual for GCPi Source GCP X residual RMS error Y residual Retransformed GCP

Total RMS Error X RMS error, Rx Y RMS error, Ry Rx = SQRT( 1/n (SUM XRi2)) Ry = SQRT( 1/n (SUM YRi2)) where XRi = X residual for GCPi YRi = Y residual for GCPi n = # of GCPs Total RMS, T = SQRT(Rx2 + Ry2) Error Contribution by Individual GCP, Ei : Ei = Ri / T

RMS Error: Example X Y xi xr Resid Resid2 yi yr Resid Resid2 228.0 228.5 0.5 0.25 242.0 241.3 -0.7 0.49 152.0 151.5 -0.5 0.25 237.0 237.0 0.0 0.0 199.0 199.2 0.2 0.04 318.0 317.4 -0.6 0.36 174.0 173.8 -0.2 0.04 352.0 352.1 0.1 0.01 42.0 41.9 -0.1 0.01 430.0 435.5 0.5 0.25 TotalSum 0.59 1.11 X RMS Error = RMSx = SQRT(0.59/5) = SQRT(0.118) = 0.34 Y RMS Error = RMSy = SQRT(1.11/5) = SQRT(0.222) = 0.47 Total RMS Error = SQRT(0.118 + 0.222) = SQRT(0.340) = 0.58

RMS Error: Example Ei = Error Contribution by Individual GCPi Error Contribution per GCP Rx Ry Ri Ei GCP1 0.25 0.49 0.86 1.48 (=0.86/0.58) GCP2 0.25 0.0 0.50 0.86 (=0.86/0.58) GCP3 0.04 0.36 0.64 1.10 (=0.86/0.58) GCP4 0.04 0.01 0.22 0.38 (=0.86/0.58) GCP5 0.01 0.25 0.51 0.88 (=0.86/0.58) where Ri = RMS Error per GCP Ei = Error Contribution by Individual GCPi

RMS Error Tolerance Rectification always entails some amount of error. The amount of error that the user is willing to tolerate depends on the application. RMS error is thought of as a error tolerance radius or window. The re-transformed pixel is within the window formed by the source pixel and a radius buffer For example: a RMS of 0.5 pixel would still put the transformed coordinate within the source pixel

RMS Error Tolerance 2 pixel RMS error tolerance (radius) Source pixel Retransformed coordinates within this range are considered correct From ERDAS Imagine Field Guide 5th ed.

Geometric Accuracy Measures RMS generally equivalent to 1 standard error in statistical parlance. Approximately 68% of the residual errors are less than + or - the threshold distance (assuming a normal distribution). Alternative measure is CE90% or a circular error of 90%, i.e., 90% of the residual errors are less than +- the threshold distance. This would be a more restrictive standard if set at the same distance threshold.

Error Tolerance 2 pixel RMS error tolerance (radius) Source pixel Individual realization of a GCP CE90 threshold Using RMSE as a metric: On average, an individual realization of a GCP is within 2 pixels of the predicted source pixel location. Using CE90% as a metric: 90% of the points are within the threshold distance of the predicted source pixel location

Error Tolerance 2 pixel RMS error tolerance (radius) Source pixel Individual realization of a GCP CE90 threshold If RMSE and CE90% were set at the same distance threshold in the above example, then the CE90% criteria would not be met because less than 90% (i.e., 7 out of 10 above) of the samples fell within the set distance threshold.

Geometric Accuracy: how close do you need? Error tolerance Either as CE 90% or linear RMSE Mapped pixel vs. “true” ground location The greater the geometric accuracy the higher the cost Example from Quickbird Scale CE90% RMSE 1:50,000 25.5m 15.4m 1:5,000 4.2m 2.6M http://www.digitalglobe.com/product/ortho_imagery.shtml

RMS Errors: Bias? Are the residuals unbiased in the X or Y direction?

Geometric Accuracy RMSE/CE90 assume that the residuals are randomly distributed (positive or negative) and unbiased in particular geographic direction. To check for bias, plot the residuals on a map and look for spatial patterns. For example, if the residuals are all negative in the interior of the map but are positive along the edges, you might consider going to a higher order polynomial

3D GIS With the increasing availability of high spatial resolution imagery, as well as LIDAR, there is a push towards 3D GIS showing buildings and other features as 3D objects Requires stereo-imagery and the application of digital photogrammetric principles

Example of Digital Photogrammetry software: ERDAS IMAGINE StereoAnalyst Graphic from: Gis.leica-geosystems.com

Digital Photogrammetric WorkFlow: Example using ERDAS StereoAnalyst Define sensor model: describes the internal geometry of the sensor as the image was captured Measure GCPs in X, Y, Z Automated Tie Point Collection: points that are visually recognizable in the overlap are of multiple images Bundle Block Adjustment to establish relationship between the various images in a project, the camera/sensor and the ground Graphic from: Gis.leica-geosystems.com

Digital Photogrammetric WorkFlow: Example using ERDAS StereoAnalyst Automated DTM (Digital Terrain Models) Extraction to identify and measure the 3D positions of common ground points Orthorectification: using the sensor model and DTM, errors associated with sensor orientation and topographic relief displacement are removed. For more info, consult the ERDAS IMAGINE StereoAnalyst User’s Guide

Ortho-rectification Orthorectification: correction of the image for topographic relief distortion (3D). This is especially important in mountainous areas where there can be distortions (e.g. scale changes) due to the varying elevations in the image scene. If stereo-imagery is not available, orthorectification can still be accomplished using Z values (elevation from a DEM)

Resampling process The rectification/resampling process at first glance appears to operate backwards in that the transformation equation goes from the map to the image, when you might expect it to go from the image to the map. The process works as follows: - create output grid - backtransform from map to image - resample to fill output grid

Resampling: for each output pixel calculate the closest input coordinate Rectified Output image Original Input image Map Image

Resampling process An empty output matrix is created in the map coordinate systems at the desired starting coordinate location and pixel size Using the transformation equation, the coordinates of each pixel in the output map matrix are transformed to determine their corresponding location in the original input image This transformed cell location will not directly overlay a pixel in the input matrix. Resampling is used to assign a DN value to the output matrix pixel - determined on the basis of the pixel values which surround its transformed position in the original input image matrix

Resampling Methods Nearest-neighbor Bilinear Interpolation Cubic Convolution

Nearest-neighbor Substitutes in DN value of closest pixel. Transfers original pixel brightness values without averaging them. Keeps extremes. Suitable for use before classification Fastest to compute Results in blocky “stair stepped” diagonal lines

Nearest neighbor resampling: chose closest single pixel Rectified Output image Original Input image Map Image

Bilinear Interpolation Distance weighted average of the DN’s of the four closest pixels More spatially accurate than nearest neighbor; smoother, less blocky Still fast to compute Pixel DN’s are averaged, smoothing edges and extreme values

Bilinear Interpolation: weighted average of four closest pixels Rectified Output image Original Input image Map Image

Cubic Convolution Evaluates block of 16 nearest pixels, not strictly linear interpolation Mean and variance of output distribution match input distribution, however data values may be altered Can both sharpen image and smooth out noise Computationally intensive

Cubic Convolution: weighted average of 16 closest pixels Rectified Output image Original Input image Map Image

Summary 1 Projection and Coordinate Transformations 2 Registration and Rectification: What is image-to-image registration vs. image-to-map rectification? How to rectify a distorted 2-D image? What is ortho-rectification? GCP (Ground control points) Geometry accuracy (RMS error) Resampling methods: nearest neighbor vs. bilinear vs. cubic convolution

Geometric correction: work flow Selection of GCPs; Coord. transform; DN Resampling. Registration or Rectification Rotate Transform Scale

Homework 1 Homework: Geometric correction; 2 Reading web lecture 4 supplemental; 3 Reading Ch. 7; ERDAS Guide Ch. 10, 13, and App. B.