Image Resampling ASTR 3010 Lecture 21 Textbook 9.4.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Digital Image Processing Lecture 3: Image Display & Enhancement
Gholamreza Anbarjafari, PhD Video Lecturers on Digital Image Processing Digital Image Processing Resizing Image.
11/11/02 IDR Workshop Dealing With Location Uncertainty in Images Hasan F. Ates Princeton University 11/11/02.
Image Display MATLAB functions for displaying image Bit Planes
Image Interpolation CS4670: Computer Vision Noah Snavely.
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
NAPP Photo Five Pockets near Dubois. Google Earth.
With support from: NSF DUE in partnership with: George McLeod Prepared by: Geospatial Technician Education Through Virginia’s Community Colleges.
Sampling, Aliasing, & Mipmaps
Technion - Israel Institute of Technology 1 On Interpolation Methods using Statistical Models RONEN SHER Supervisor: MOSHE PORAT.
Technion - Israel Institute of Technology 1 Interpolation Method using Statistical Models RONEN SHER Supervisor: MOSHE PORAT.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 5: Image Processing 2: Warping Ravi Ramamoorthi
Technion - Israel Institute of Technology 1 On Interpolation Methods using Statistical Models RONEN SHER Supervisor: MOSHE PORAT.
CS 128/ES Lecture 5a1 Raster Formats (II). CS 128/ES Lecture 5a2 Spatial modeling in raster format  Basic entity is the cell  Region represented.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 5: Image Processing 2: Warping Ravi Ramamoorthi
Image representation using arrays Image processing examples
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
Chapter 2: Digital Image Fundamentals Fall 2003, 劉震昌.
Introduction to ArcGIS for Environmental Scientists Module 2 – GIS Fundamentals Lecture 5 – Coordinate Systems and Map Projections.
Georeferencing Getting maps and satellite images into GIS.
Applied Cartography and Introduction to GIS GEOG 2017 EL Lecture-3 Chapters 5 and 6.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
Image Registration January 2001 Gaia3D Inc. Sanghee Gaia3D Seminar Material.
Procedure Figure 1 illustrates the typical resampling problem. A grid of resampling pixels (“rixels”) is superposed over some original grid of image pixels.
Remote Sensing Image Rectification and Restoration
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
Chapter 3: Image Restoration Geometric Transforms.
Raster Data Chapter 7. Introduction  Vector – discrete  Raster – continuous  Continuous –precipitation –elevation –soil erosion  Regular grid cell.
NAPP Photo Five Pockets near Dubois.
Orthorectification using
Image Preprocessing: Geometric Correction Image Preprocessing: Geometric Correction Jensen, 2003 John R. Jensen Department of Geography University of South.
JRN 440 Adv. Online Journalism Resizing and resampling Monday, 2/6/12.
Image Resampling CS4670: Computer Vision Noah Snavely.
Image Processing Xuejin Chen Ref:
Digital Image Processing Lecture 6: Image Geometry
Image Processing Edge detection Filtering: Noise suppresion.
Spring 2012Meeting 2, 7:20PM-10PM1 Image Processing with Applications-CSCI567/MATH563 Lectures 3, 4, and 5: L3. Representing Digital Images; Zooming. Bilinear.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
GEOMETRIC OPERATIONS. Transformations and directions Affine (linear) transformations Translation, rotation and scaling Non linear (Warping transformations)
Co-Registration of SAR Image Pairs for Interferometry
Principle Component Analysis (PCA)
(c) 2002 University of Wisconsin, CS 559
Digital Aperture Photometry ASTR 3010 Lecture 10 Textbook 9.5.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Geoprocessing and georeferencing raster data
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
Arithmetic and Geometric Transformations (Chapter 2) CS474/674 – Prof. Bebis.
Geometric Preprocessing
Image Resampling & Interpolation
Distortions in imagery:
NAPP Photo Five Pockets near Dubois.
Interpolating the INO magnetic field map
Image transformations
Image Rectificatio.
Outline Announcement Local operations (continued) Linear filters
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
Computer Vision Lecture 4: Color
Image Processing Today’s readings For Monday
On Convolutional Neural Network
Image Resampling & Interpolation
Resampling.
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Image Resampling ASTR 3010 Lecture 21 Textbook 9.4

from Tom McGlynn’s IPAM Workshop presentation Why do we need to resample? Display – transform image into ‘standard’ form Display – transform image into ‘standard’ form o Undo warps and distortions o Transform to standard frame o Resizing: upsampling or downsampling o Rotation Image comparison – transform one image to match another Image comparison – transform one image to match another Mosaicking Mosaicking o Building sky region and all sky images Image arithmetic Image arithmetic o Dither additions, image differencing, speckle analysis

Resampling example SkyView transforms the EGRET all sky map in Galactic coordinates to Equatorial coordinates.

Nearest Neighbor Nearest neighbor assignment is the resampling technique of choice for discrete data since it does not alter the value of the input cells. However, astrometric accuracy is degraded. gray grid: input grid orange: nearest neighbor in the input red: output value

Bilinear interpolation Bilinear interpolation is done by identifying the four nearest cell centers on the input raster (in orange) and assigning itself to the weighted average of the four values. This process is repeated for each cell in the output raster.

Bilinear interpolation A common method for resampling images A common method for resampling images a b

Cubic interpolation by identifying the 16 nearest cell centers on the input raster (in orange) and assigning itself to the weighted average of the 16 values.

Example of 4x Upsampling Nearest neighbor Bilinear Bicubic Original

Interpolation smoothes out features 0.5 pixel shifted and Linear interpolated resampled x3 shifted and interpolated Original Signal

Resolution enhancement (or Super-Resolution) Nearest Neighbor degrades positional information Nearest Neighbor degrades positional information Bilinear (or other low order interpolations) smooth the signal Bilinear (or other low order interpolations) smooth the signal Three commonly used resampling strategies Three commonly used resampling strategies o Shift-and-add (and interpolate) o Interlace o Drizzle

Shift-and-add output grid input grid

Shift-and-add output grid fractional contribution from an input pixel to several output pixels

Shift-and-add output grid fractional contribution from an input pixel to several output pixels

Interlace output grid input grid

Interlace Repeat this process for many input images with known dithers  super-resolution examine each input pixel. locate its transformed center in the output grid. assign ALL input pixel count to a corresponding output pixel (no fractional coordinates)

Interlace 1D example: Python HW#5 Four samplings of a double Gaussian-peak distribution. Four samplings of a double Gaussian-peak distribution. Each sampling was shifted (“dithered”) with pixels to the right. Each sampling was shifted (“dithered”) with pixels to the right.sample1=[0.39,38.92,26.39,34.27]sample2=[3.39,42.92,38.20,15.50]sample3=[12.02,36.63,46.63,4.72]sample4=[26.32,27.30,45.54,0.80] Construct an interlaced distribution showing a 4 times better resolution. Construct an interlaced distribution showing a 4 times better resolution.

Problems and Limitation Interlace for a single image is a flawed approach: Interlace for a single image is a flawed approach: o it creates a discontinuous image o positional error b/c we ignore any fractional coordinates  with many input images, these two problems will become less significant. Shift-and-add and Interlace methods both require precise information on “shift” between images Shift-and-add and Interlace methods both require precise information on “shift” between images Limited precision of many actual telescope controls usually produces a set of images whose grids are randomly dithered at the sub-pixel level  not suitable for S&A and interlace. Limited precision of many actual telescope controls usually produces a set of images whose grids are randomly dithered at the sub-pixel level  not suitable for S&A and interlace.

Drizzle (variable-pixel linear reconstruction) output grid input grid input drop

Drizzle output grid input grid empty output pixel In Pyraf, pydrizzle is available by “import pydrizzle” p d f=d/p f  0 interlace f  1 shift and add

Drizzle Example M57 M57 left (original image)  right (2x drizzle with 100 input images) left (original image)  right (2x drizzle with 100 input images)

In summary… Important Concepts Resampling o shift-and-add o interlace o drizzle Important Terms Chapter/sections covered in this lecture : 9.4