Image representation, sampling and quantization

Similar documents
Lecture 2: Digital Image Fundamentals -- Sampling & Quantization

Image Processing (EA C443)

Image processing. Image formation. Brightness images. Pre-digitization image. Subhransu Maji. CMPSCI 670: Computer Vision. September 22, 2016

DSP First Lab 06: Digital Images: A/D and D/A

Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information

ECE 484 Digital Image Processing Lec 09 - Image Resampling

MATLAB Image Processing Toolbox

Prof. Feng Liu. Fall /04/2018

Computer Assisted Image Analysis 1 GW 1, Filip Malmberg Centre for Image Analysis Deptartment of Information Technology Uppsala University

Digital Imaging Rochester Institute of Technology

Mech 296: Vision for Robotic Applications. Vision for Robotic Applications

Digital Image processing Lab

Vision Review: Image Processing. Course web page:

ECC419 IMAGE PROCESSING

L2. Image processing in MATLAB

ECE/OPTI533 Digital Image Processing class notes 288 Dr. Robert A. Schowengerdt 2003

Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized

Lab P-8: Digital Images: A/D and D/A

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

ECE 619: Computer Vision Lab 1: Basics of Image Processing (Using Matlab image processing toolbox Issued Thursday 1/10 Due 1/24)

Image Compression Technique Using Different Wavelet Function

Lecture 9: Digital Images

MATLAB: Basics to Advanced

Filters. Materials from Prof. Klaus Mueller

Image and Video Processing

Sampling and pixels. CS 178, Spring Marc Levoy Computer Science Department Stanford University. Begun 4/23, finished 4/25.

Image Interpolation. Image Processing

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

EELE 5110 Digital Image Processing Lab 02: Image Processing with MATLAB

CS101 Lecture 12: Digital Images. What You ll Learn Today

Fundamentals of Multimedia

Computing for Engineers in Python

Improvement of Satellite Images Resolution Based On DT-CWT

A PROPOSED ALGORITHM FOR DIGITAL WATERMARKING

Lecture Notes 11 Introduction to Color Imaging

6.098/6.882 Computational Photography 1. Problem Set 1. Assigned: Feb 9, 2006 Due: Feb 23, 2006

EE482: Digital Signal Processing Applications

December 28, Dr. Praveen Sankaran (Department of ECE NIT Calicut DIP)

Lecture #2. Image acquisition Images in the spatial domain. MATLAB image processing. EECS490: Digital Image Processing

IMAGE PROCESSING: POINT PROCESSES

Noise and Restoration of Images

Digital Image Processing

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

Chapter 9 Image Compression Standards

Compression and Image Formats

Demosaicing Algorithms

Lec 05 - Linear Filtering & Edge Detection

DIGITAL IMAGE PROCESSING

Antialiasing and Related Issues

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Brief Introduction to Vision and Images

This content has been downloaded from IOPscience. Please scroll down to see the full text.

Lecture 2 Digital Image Fundamentals. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Previous Lecture: Today s Lecture: Announcements: 2-d array examples. Image processing

Virtual Restoration of old photographic prints. Prof. Filippo Stanco

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

ece 429/529 digital signal processing robin n. strickland ece dept, university of arizona ECE 429/529 RNS

Midterm Examination CS 534: Computational Photography

Teaching Scheme. Credits Assigned (hrs/week) Theory Practical Tutorial Theory Oral & Tutorial Total

! Multi-Rate Filter Banks (con t) ! Data Converters. " Anti-aliasing " ADC. " Practical DAC. ! Noise Shaping

Spatial Analyst is an extension in ArcGIS specially designed for working with raster data.

Understanding PDM Digital Audio. Thomas Kite, Ph.D. VP Engineering Audio Precision, Inc.

Comparative Analysis of WDR-ROI and ASWDR-ROI Image Compression Algorithm for a Grayscale Image

Transform. Processed original image. Processed transformed image. Inverse transform. Figure 2.1: Schema for transform processing

Image Enhancement in the Spatial Domain Low and High Pass Filtering

Lecture 8. Color Image Processing

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Matlab Code For Image Compression Using Svd

EE292: Fundamentals of ECE

SAMPLING THEORY. Representing continuous signals with discrete numbers

IMAGE ENHANCEMENT - POINT PROCESSING

Image processing in MATLAB. Linguaggio Programmazione Matlab-Simulink (2017/2018)

International Conference on Advances in Engineering & Technology 2014 (ICAET-2014) 48 Page

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Lab 1. Basic Image Processing Algorithms Fall 2017

COURSE ECE-411 IMAGE PROCESSING. Er. DEEPAK SHARMA Asstt. Prof., ECE department. MMEC, MM University, Mullana.

ECU 3040 Digital Image Processing

Fig 1: Error Diffusion halftoning method

Objective Evaluation of Edge Blur and Ringing Artefacts: Application to JPEG and JPEG 2000 Image Codecs

Session 1. by Shahid Farid

Image Pyramids. Sanja Fidler CSC420: Intro to Image Understanding 1 / 35

image Scanner, digital camera, media, brushes,

The Difference Between Image Resizing and Resampling in Photoshop

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

Lecture Outline. ESE 531: Digital Signal Processing. Anti-Aliasing Filter with ADC ADC. Oversampled ADC. Oversampled ADC

Satellite Image Resolution Enhancement Technique Using DWT and IWT

ESE 531: Digital Signal Processing

Prof. Feng Liu. Fall /02/2018

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution

LINEAR AND NONLINEAR FILTER FOR IMAGE PROCESSING USING MATLAB S IMAGE PROCESSING TOOLBOX

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

EE 470 Signals and Systems

Digital Image Fundamentals and Image Enhancement in the Spatial Domain

Image Processing COS 426

Transcription:

Image representation, sampling and quantization António R. C. Paiva ECE 6962 Fall 2010

Lecture outline Image representation Digitalization of images Changes in resolution Matlab tutorial

Lecture outline Image representation Digitalization of images Changes in resolution Matlab tutorial

Image as a function I An image is a function of the space. Typically, a 2-D projection of the 3-D space is used, but the image can exist in the 3-D space directly.

Image as a function II The fact that a 2-D image is a projection of a 3-D function is very important in some applications. (From Schmidt, Mohr and Bauckhage, IJCV, 2000.) This in important in image stitching, for example, where the structure of the projection can be used to constrain the image transformation from different view points.

Image as a single-valued function The function can be single-valued f : R m R, m = 2, 3, quantifying, for example, intensity.

Image as a multi-valued function... or, be multi-valued, f : R m R 3, m = 2, 3. The multiple values may correspond to different color intensities, for example. Red Green Blue

2-D vs. 3-D images

Images are analog Notice that we defined images as functions in a continuous domain. Images are representations of an analog world. Hence, as with all digital signal processing, we need to digitize our images.

Lecture outline Image representation Digitalization of images Changes in resolution Matlab tutorial

Digitalization Digitalization of an analog signal involves two operations: Sampling, and Quantization. Both operations correspond to a discretization of a quantity, but in different domains.

Sampling I Sampling corresponds to a discretization of the space. That is, of the domain of the function, into f : [1,..., N] [1,..., M] R m.

Sampling II Thus, the image can be seen as matrix, f (1, 1) f (1, 2) f (1, M) f (2, 1) f (2, 2) f (2, M) f =...... f (N, 1) f (N, 2) f (N, M). The smallest element resulting from the discretization of the space is called a pixel (picture element). For 3-D images, this element is called a voxel (volumetric pixel).

Quantization I Quantization corresponds to a discretization of the intensity values. That is, of the co-domain of the function. After sampling and quantization, we get f : [1,..., N] [1,..., M] [0,..., L].

Quantization II Quantization corresponds to a transformation Q(f ) 4 levels 8 levels Typically, 256 levels (8 bits/pixel) suffices to represent the intensity. For color images, 256 levels are usually used for each color intensity.

Digitalization: summary

Lecture outline Image representation Digitalization of images Changes in resolution Matlab tutorial

Which resolution? Digital image implies the discretization of both spatial and intensity values. The notion of resolution is valid in either domain. Most often it refers to the resolution in sampling. Extend the principles of multi-rate processing from standard digital signal processing. It also can refer to the number of quantization levels.

Reduction in sampling resolution I Two possibilities: Downsampling Decimation

Reduction in sampling resolution II

Increase in sampling resolution Downsampled Nearest The main idea is to use interpolation. Common methods are: Nearest neighbor Bilinear interpolation Bicubic interpolation Bilinear Bicubic

Decrease in quantization levels I

Decrease in quantization levels II

Non-uniform quantization I The previous approach considers that all values are equally important and uniformly distributed.

Non-uniform quantization II What to do if some values are more important than others? In general, we can look for quantization levels that more accurately represent the data. To minimize the mean square error (MSE) we can use the Max-Lloyd algorithm to find the quantization levels with minimum MSE.

Non-uniform quantization III Max-Lloyd algorithm: 1. Choose initial quantization levels; 2. Assign points to a quantization level and reconstruct image; 3. Compute the new quantization levels as the mean of the value of all points assigned to each quantization level. 4. Go back to 2 until reduction of MSE is minimal.

The false contour effect I By quantizing the images we introduce discontinuities in the image intensities which look like contours. in 1-D, in 2-D,

The false contour effect II To mitigate the false contour effect we can use dither. Basically, we add noise before quantization to create a more natural distribution of the new intensity values. Original Undithered Dithered (Images from Wikipedia.)

Lecture outline Image representation Digitalization of images Changes in resolution Matlab tutorial

Reading images Use imread to read an image into Matlab:» img = imread( peppers.jpg, jpg );» whos Name Size Bytes Class img 512x512x3 786432 uint8 Format is: A = IMREAD(FILENAME,FMT). Check the help, help imread, for details. Note that data class is uint8. Convert to double with img = double(img);. This is necessary for arithmetic operations.

Displaying images I With Image Processing toolbox: use imshow to display the image.» imshow(img);» imshow(img(:,:,1)); % Shows only the red component of the image The image must be in uint8 or, if double, normalized from 0 to 1.

Displaying images II Without the Image Processing toolbox: use image to display the image.» image(img); The image must have 3 planes. So, for grayscale images do,» image(repmat(gray_img, [1 1 3]));

Saving images Use imwrite to save an image from Matlab:» imwrite(img, peppers2.jpg, jpg );» imwrite(img(:,:,1), peppersr.jpg, jpg ); % Saves only the red component of the image Format is: IMWRITE(A,FILENAME,FMT). Check the help, help imwrite, for details. The image should be in uint8 or, if double, normalized from 0 to 1.

Reading Sections 2.4 and 2.5 of the textbook.