Chapter 3: Image Restoration Geometric Transforms.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Image Processing Ch2: Digital image Fundamentals Part 2 Prepared by: Tahani Khatib.
QR Code Recognition Based On Image Processing
Digital Image Processing
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Digital Image Processing
Histogram Processing The histogram of a digital image with gray levels from 0 to L-1 is a discrete function h(rk)=nk, where: rk is the kth gray level nk.
Image Enhancement in the Spatial Domain
Chapter 4: Image Enhancement
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
With support from: NSF DUE in partnership with: George McLeod Prepared by: Geospatial Technician Education Through Virginia’s Community Colleges.
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
Digital Image Processing
Image Restoration.
Image Analysis Preprocessing Image Quantization Binary Image Analysis
Digital Image Processing Chapter 2: Digital Image Fundamentals.
8. Geometric Operations Geometric operations change image geometry by moving pixels around in a carefully constrained way. We might do this to remove distortions.
Preprocessing ROI Image Geometry
Image Restoration.
Image Enhancement.
Computer Vision Lecture 3: Digital Images
Image processing Lecture 4.
Digital Image Processing Lecture 4 Image Restoration and Reconstruction Second Semester Azad University Islamshar Branch
 Image Enhancement in Spatial Domain.  Spatial domain process on images can be described as g(x, y) = T[f(x, y)] ◦ where f(x,y) is the input image,
Georeferencing Getting maps and satellite images into GIS.
Applied Cartography and Introduction to GIS GEOG 2017 EL Lecture-3 Chapters 5 and 6.
Image Registration January 2001 Gaia3D Inc. Sanghee Gaia3D Seminar Material.
Remote Sensing Image Rectification and Restoration
Geometric transformations Affine transformations Forward mapping Interpolations schemes.
NAPP Photo Five Pockets near Dubois.
CS 551/651 Advanced Computer Graphics Warping and Morphing Spring 2002.
Geometric Operations and Morphing.
Image Preprocessing: Geometric Correction Image Preprocessing: Geometric Correction Jensen, 2003 John R. Jensen Department of Geography University of South.
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
High-Resolution Interactive Panoramas with MPEG-4 발표자 : 김영백 임베디드시스템연구실.
Digital Image Processing Lecture 6: Image Geometry
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Chapter 3: Image Restoration Introduction. Image restoration methods are used to improve the appearance of an image by applying a restoration process.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
Geometric transformations Affine transformations Forward mapping Interpolations schemes.
Spring 2012Meeting 2, 7:20PM-10PM1 Image Processing with Applications-CSCI567/MATH563 Lectures 3, 4, and 5: L3. Representing Digital Images; Zooming. Bilinear.
CS482 Selected Topics in Digital Image Processing بسم الله الرحمن الرحيم Instructor: Dr. Abdullah Basuhail,CSD, FCIT, KAU, 1432H Chapter 2: Digital Image.
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
GEOMETRIC OPERATIONS. Transformations and directions Affine (linear) transformations Translation, rotation and scaling Non linear (Warping transformations)
Interactive Graphics Lecture 10: Slide 1 Interactive Computer Graphics Lecture 10 Introduction to Surface Construction.
1 CMPB 345: IMAGE PROCESSING DISCRETE TRANSFORM 2.
Hough transform and geometric transform
ECE 472/572 - Digital Image Processing Lecture 6 – Geometric and Radiometric Transformation 09/27/11.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Geometry and Geometric Transformation.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Digital Image Processing Image Enhancement in Spatial Domain
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Digital Image Processing
Arithmetic and Geometric Transformations (Chapter 2) CS474/674 – Prof. Bebis.
Geometric Preprocessing
Distortions in imagery:
Chapter 6: Image Geometry 6.1 Interpolation of Data
Image Geometry and Geometric Transformation
Outline Announcement Local operations (continued) Linear filters
T490 (IP): Tutorial 2 Chapter 2: Digital Image Fundamentals
ENG4BF3 Medical Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Digital Image Processing
© 2010 Cengage Learning Engineering. All Rights Reserved.
Lecture 2 Digital Image Fundamentals
Presentation transcript:

Chapter 3: Image Restoration Geometric Transforms

Overview Geometric transforms are used to modify the location of pixel values within an image. –Typically used to correct images that have been spatially distorted. Often referred to as rubber-sheet transforms, because the image is modeled as a sheet of rubber that can be stretched and shrunk.

Overview Spatial distortion can be caused by: –Defective optics in an image acquisition system. –Distortion in image display devices. –2-D imaging of 3-D surface. Geometric transforms are also used for other applications that require spatial modification. –Example: Image morphing and image warping.

Overview The simplest image transforms (translate, rotate, zoom, shrink) have already been discussed in Chapter 2. –These only move pixels around and do not really distort the image. The more sophisticated geometric transforms require 2 steps: –Spatial transform –Gray-level interpolation

Overview The spatial transform provides the location of the output pixel. Gray-level interpolation is required because pixel row and column coordinates provided by the spatial transform may not be integers.

Spatial Transforms Used to map the input image location to a location in the output image. Involves finding the equations that relate the coordinate of the pixels in input image to the coordinate of the pixels in output image. Defines the row coordinate for the distorted image Defines the column coordinate for the distorted image

Spatial Transforms The primary idea here is to find the equations for R(r,c) and C(r,c) and then apply the inverse process to find the restored image. The distortion that occurs may be different at different parts of the image. –Therefore, different parts of the image may require different equations.

Spatial Transforms To determine the necessary equations, we need to identify a set of points in the original image that matches points in the distorted image. –These set of points are called tiepoints. The form of these equations is typically bilinear, although higher order polynomials can also be used.

Spatial Transforms The method to restore a geometrically distorted image consists of three steps: –Define quadrilaterals (four-sided polygons) with known or best-guessed tiepoints for the entire image. –Find the equation R(r,c) and C(r,c) for each set of tiepoints. –Remap all the pixels within each quadrilateral subimage using the equation corresponding to those tie points.

Spatial Transforms

The equations for R(r,c) and C(r,c) are generated as follows. The k i values are constants to be determined by solving the eight simultaneous equations. For example:

Spatial Transforms (86, 43) (70, 170) (170,55) (190, 170) (86, 86)(86, 171) (171,86)(171, 171)

Spatial Transforms

After we have got all the k i values, then we can formulate the equations for R(r,c) and C(r,c). The equations can then be used to find the pixels values in the output image by mapping them to their corresponding pixels in the input/distorted image. Example: Assume that we have the following mapping equations.

Spatial Transforms To find I(2,3), substitute (r,c)=(2,3) in to the above equations. We find Now, we let I(2,3) = d(39,17)

Spatial Transforms However, in practice, the k i values are not likely to be integers. For example: To find I(2,3), substitute (r,c)=(2,3) in to the above equations. We find Now, we let I(2,3) = d(41.4,20.6)

Spatial Transforms The difficulty in this example arises when we try to determine the value of d(41.4,20.6). –Digital images are defined only at the integer values for (r,c). Therefore, gray level interpolation must be performed to determine the pixel values for such intermediate location.

Gray-Level Interpolation The simplest method for gray-level interpolation is the nearest neighbor method. –The pixel is assigned the value of the closest pixel in the distorted image. In the previous example, the four neighbor pixels are d(41,20), d(41,21), d(42,20), d(42,21). –Therefore, the value of I(2,3) is set to the value of d(41,21).

Gray-Level Interpolation

This method has the advantage of being easy to implement and computationally fast, but it does not provide optimal results. To obtain a more visually pleasing result, we can implement other more advance methods. The easiest of such methods is the neighborhood average method.

Gray-Level Interpolation This method uses the four surrounding values in the distorted image to estimate the desired value. –In the previous example, the value of I(2,3) is set to the value of the average of d(41,20), d(41,21), d(42,20), d(42,21). This can be done one dimensionally using adjacent rows or columns, or two dimensionally using all four neighbors.

Gray-Level Interpolation Another more advance technique is the method called bilinear interpolation. It is done with the following equation: The four unknown constants (k 1 to k 4 ) are found by using the four surrounding points. –Note that these constants are different from the ones used in the spatial mapping equation.

Gray-Level Interpolation Example: Supposed that we are looking for the gray level for d(1.3,2.6). The four surrounding points as follows: Then we define the following four simultaneous equations, and solve for the 4 unknowns:

Gray-Level Interpolation Solving these simultaneous equations give us:

Gray-Level Interpolation To find d(1.3,2.6), substitute,= (1.3, 2,6) in the above equations. We will find: Results of different methods: –Nearest neighbor: Can cause blocky effect at the edges. –Neighborhood average: Smoother edges, but image becomes a bit blurred. –Bilinear interpolation: Optimal result.

Gray-Level Interpolation

Nearest Neighbor Method

Gray-Level Interpolation Neighborhood average method Bilinear Interpolation