Lecture 2: Digital Image Fundamentals -- Sampling & Quantization

Similar documents
Image Processing. Image Processing. What is an Image? Image Resolution. Overview. Sources of Error. Filtering Blur Detect edges

Image Processing COS 426

ECC419 IMAGE PROCESSING

Image representation, sampling and quantization

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

General Imaging System

Image Processing (EA C443)

Digital Image Processing

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

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Processing

Lecture 3: Grey and Color Image Processing

Image and Video Processing

Digitization and fundamental techniques

Introduction. Prof. Lina Karam School of Electrical, Computer, & Energy Engineering Arizona State University

Vision Review: Image Processing. Course web page:

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Image Processing 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Human Vision, Color and Basic Image Processing

Prof. Feng Liu. Fall /04/2018

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

Image Processing. What is an image? קורס גרפיקה ממוחשבת 2008 סמסטר ב' Converting to digital form. Sampling and Reconstruction.

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

CS 548: Computer Vision REVIEW: Digital Image Basics. Spring 2016 Dr. Michael J. Reale

Digital Media. Daniel Fuller ITEC 2110

Introduction to Computer Vision

Image Processing for feature extraction

Topic 9 - Sensors Within

Image Formation: Camera Model

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Chapter 2: Digital Image Fundamentals. Digital image processing is based on. Mathematical and probabilistic models Human intuition and analysis

Digital Photographs and Matrices

Filters. Materials from Prof. Klaus Mueller

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Module 3: Video Sampling Lecture 18: Filtering operations in Camera and display devices. The Lecture Contains: Effect of Temporal Aperture:

COPYRIGHTED MATERIAL. Part I. Essentials for Serious Image Editing

Image acquisition. In both cases, the digital sensing element is one of the following: Line array Area array. Single sensor

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

image Scanner, digital camera, media, brushes,

Digital Imaging Rochester Institute of Technology

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

Cvision 2. António J. R. Neves João Paulo Silva Cunha. Bernardo Cunha. IEETA / Universidade de Aveiro

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

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

Prof. Feng Liu. Fall /02/2018

Acquisition. Some slides from: Yung-Yu Chuang (DigiVfx) Jan Neumann, Pat Hanrahan, Alexei Efros

Digital Photographs, Image Sensors and Matrices

Cameras. CSE 455, Winter 2010 January 25, 2010

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

Cameras CS / ECE 181B

Building a Real Camera

Design of a digital holographic interferometer for the. ZaP Flow Z-Pinch

ENGG1015 Digital Images

Capturing and Editing Digital Images *

Photons and solid state detection

Dr. J. J.Magdum College. ABSTRACT- Keywords- 1. INTRODUCTION-

Digital photography , , Computational Photography Fall 2017, Lecture 2

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

Chapter 2-Digital Components

Lecture 8. Color Image Processing

Antialiasing and Related Issues

Noise Reduction in Raw Data Domain

LAB 2: Sampling & aliasing; quantization & false contouring

Acquisition and representation of images

Image Demosaicing. Chapter Introduction. Ruiwen Zhen and Robert L. Stevenson

ROBOT VISION. Dr.M.Madhavi, MED, MVSREC

Vision, Color, and Illusions. Vision: How we see

ME 6406 MACHINE VISION. Georgia Institute of Technology

Lecture 4: Spatial Domain Processing and Image Enhancement

ENVI Tutorial: Orthorectifying Aerial Photographs

Digital Cameras The Imaging Capture Path

Megapixels and more. The basics of image processing in digital cameras. Construction of a digital camera

Graphics and Image Processing Basics

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

Camera Image Processing Pipeline

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

Building a Real Camera. Slides Credit: Svetlana Lazebnik

Lecture 29: Image Sensors. Computer Graphics and Imaging UC Berkeley CS184/284A

The Raw Deal Raw VS. JPG

Assignment: Cameras and Light

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Lecture 30: Image Sensors (Cont) Computer Graphics and Imaging UC Berkeley CS184/284A

Photoshop: Save for Web and Devices

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

EE 392B: Course Introduction

Lecture Notes 11 Introduction to Color Imaging

Digital photography , , Computational Photography Fall 2018, Lecture 2

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Outline: Getting the Best Scans

DIGITAL IMAGE PROCESSING

Sunderland, NE England

Image Formation and Capture

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

Image Formation and Capture. Acknowledgment: some figures by B. Curless, E. Hecht, W.J. Smith, B.K.P. Horn, and A. Theuwissen

CS 376b Computer Vision

Image Processing: An Overview

A.V.C. COLLEGE OF ENGINEERING DEPARTEMENT OF CSE CP7004- IMAGE PROCESSING AND ANALYSIS UNIT 1- QUESTION BANK

Solution Set #2

Light. Path of Light. Looking at things. Depth and Distance. Getting light to imager. CS559 Lecture 2 Lights, Cameras, Eyes

Improvements of Demosaicking and Compression for Single Sensor Digital Cameras

Transcription:

I2200: Digital Image processing Lecture 2: Digital Image Fundamentals -- Sampling & Quantization Prof. YingLi Tian Sept. 6, 2017 Department of Electrical Engineering The City College of New York The City University of New York (CUNY) Some materials from Dr. Lexing Xie and Dr. Shahram Ebadollahi 1

Announcement Chapter 2 (please read) this week Course website: http://wwwee.ccny.cuny.edu/www/web/yltian/i2200.html Book website: http://www.prenhall.com/gonzalezwoods HW1 is out today: Due: 9/26/2017 2

Outline: Illusions Image sampling and interpolation Image quantization Basic relationship between Pixels Basic operations for image processing 3

Cognitive illusions of the human visual system 4

Cognitive illusions of the human visual system 5

Cognitive illusions of the human visual system 6

Cognitive illusions of the human visual system 7

Cognitive illusions of the human visual system 8

Confused color Read out the color of the words, not the word itself. How far can you go? 9

Digital Image Acquisition: From Physical Image to Digital Image 10

Digital Image Acquisition: From Physical Image to Digital Image Film Image sensors CCD (Charge-coupled device) http://en.wikipedia.org/wiki/ccd_camera CMOS (Complementary Metal Oxide Semiconductor ) http://en.wikipedia.org/wiki/active_pixel_sensor Color Cameras: Bayer color filter 11

Digital Image Acquisition: CCD Sensor Single imaging sensor Line sensor Array sensor 12

CCD vs CMOS A CCD is an analog device. When light strikes the chip it is held as a small electrical charge in each photo sensor. The charges are converted to voltage one pixel at a time as they are read from the chip. Additional circuitry in the camera converts the voltage into digital information. A CMOS chip is a type of active pixel sensor made using the CMOS semiconductor process. Extra circuitry next to each photo sensor converts the light energy to a voltage. Additional circuitry on the chip may be included to convert the voltage to digital data. 13

Bayer color filter Invented by B. E. Bayer at Kodak, For more details: http://www.siliconimaging.com/rgb%20bayer.htm 14

Digital Image Acquisition: From Physical Image to Digital Image Goal: generate digital images from sensed data Sampling Process of mapping a continuous function to discrete coordinate values NOTE: pixels are samples from physical image Photoreceptors in eye CCD array Quantization Process of mapping continuous variable to discrete digitizing the amplitude values 15

Digital Image Acquisition: From Physical Image to Digital Image http://www.cs.princeton.edu/courses/archive/fall00/cs426/lectures/dither/dither.pdf 16

Image Resolution Intensity resolution Each pixel has only Depth bits for colors/intensities Spatial resolution Image has only Width x Height pixels Temporal resolution Monitor refreshes images at only Rate Hz 17

Digital Image Acquisition: From Physical Image to Digital Image 18

Digital Image Acquisition: From Physical Image to Digital Image 19

Image representation 20

Image representation - Array 0 f L-1 0 x M-1 0 y N-1 21

Image Spatial and Intensity Resolution Spatial resolution: 0 x M-1 0 y N-1 Note: change spatial resolution is called sampling. Intensity resolution: 0 f L-1 L is the number of intensity levels Note: change intensity resolution is called quantization. 22

Image Storage The number, b, of bits required to store a digitized M by N image When M = N, Question: 1 byte =? bits 1 byte = 8 bits 23

Image Storage 24

Neighbors of a pixel y (x-1, y-1) (x-1, y) (x-1, y+1) (x, y-1) (x, y) (x, y+1) (x+1, y-1) (x+1, y) (x+1, y+1) x 25

Examples of Image of Different Spatial Resolution 26

Examples of Image of Different Intensity Resolution 27

Image Spatial Sampling --resizing High resolution low resolution Down-sample or shrink Low resolution high resolution Interpolation or zoom in 28

Image Interpolation Interpolation works by using known data to estimate values at unknown points. Linear interpolation For example: if you wanted to know the temperature at noon, but only measured it at 11AM and 1PM, 29

Image Interpolation If you had an additional measurement at 11:30AM, you could see that the bulk of the temperature rise occurred before noon, and could use this additional data point to perform a quadratic interpolation: 30

Image Interpolation Image interpolation works in two directions, and tries to achieve a best approximation of a pixel's color and intensity based on the values at surrounding pixels. 2D Interpolation Original Before After No Interpolation http://www.cambridgeincolour.com/tutorials/image-interpolation.htm 31

Image Resizing methods Non-adaptive algorithms Nearest Neighbor Interpolation Bilinear interpolation Bicubic interpolation Adaptive algorithms Commercial software 32

Nearest Neighbor Interpolation Nearest neighbor is the most basic and requires the least processing time of all the interpolation algorithms because it only considers one pixel-- the closest one to the interpolated point. This has the effect of simply making each pixel bigger. 33

Take 10 mins rest, then we ll continue 34

Bilinear Interpolation Bilinear interpolation considers the closest 2x2 neighborhood of known pixel values surrounding the unknown pixel. It then takes a weighted average of these 4 pixels to arrive at its final interpolated value. This results in much smoother looking images than nearest neighbor. 35

Bicubic Interpolation Bicubic goes one step beyond bilinear by considering the closest 4x4 neighborhood of known pixels-- for a total of 16 pixels. Since these are at various distances from the unknown pixel, closer pixels are given a higher weighting in the calculation. 36

Bilinear Interpolation Method 37

Problem with Downsampling 38

Problem with Downsampling 39

Problem with Downsampling 40

Aliasing Error Visual Perception Original image Down-sampled version 41

OPTICAL vs. DIGITAL ZOOM Many compact digital cameras can perform both an optical and a digital zoom. Optical zoom by moving the zoom lens so that it increases the magnification of light before it even reaches the digital sensor. Digital zoom degrades quality by simply interpolating the image-- after it has been acquired at the sensor. 42

OPTICAL vs. DIGITAL ZOOM 10X Optical Zoom 10X Digital Zoom 43

Quantization Artifacts due to limited intensity resolution Frame buffers have limited number of bits per pixel Physical devices have limited dynamic range 44

Uniform Quantization 45

Uniform Quantization Images with decreasing bits per pixel: Reduce effects of quantization: Halftoning and Dithering 46

Classical Halftoning Use dots of varying size to represent intensities Area of dots proportional to intensity in image 47

Classical Halftoning 48

Halftone patterns Use cluster of pixels to represent intensity Trade spatial resolution for intensity resolution Image from Thomas Funkhouser s lecture in Princeton University 49

Halftone patterns How many intensities in a n x n cluster? 50

Dithering Distribute errors among pixels Exploit spatial integration in our eye Display greater range of perceptible intensities 51

Dithering: Random vs Ordered 52

Relationship between pixels 53

Edge Original image Sobel edge Laplace edge 54

Boundary (border or contour) 55

Connected Component Connected components labeling scans an image and groups its pixels into components based on pixel connectivity Connected Components Labeling 56

Distance Measurement Pixels p(x, y), q(s, t), and z(v, w) Euclidean distance between p and q D(p,q)= sqrt ((x-s)^2 + (y-t)^2) D4 distance D4(p,q) = x s + y t D8 distance D8(p,q) = max( x s, y t ) 57

Image Difference 58

Image difference and enhancement 59

Image Arithmetic Addition Subtraction Multiplication Division Logical: AND, OR, XOR, NOT, 60

Background Subtraction Find moving objects, Video demo 61

Basic operations 62

Example of basic operations 63

Logical Operations 64

Affine Transformation 65

Image Rotation 66

Image registration 67

HW 1 -- Due: 9/26/2017 Discussions are welcomed Never copy others work (no grades for both students) 68

Homework Requirements A word file with: Questions your solutions with output images M files (matlab) -- executable Email the word file and matlab files to our TA: Mr. Xuejian Rong at rxjjason@gmail.com Subject: I2200 HW 69

Homework - presentation The student will give about 15 mins to present the HW, then followed by 10 mins discussion HW1 Adrian Logan HW2 Mateusz Malinowski HW3 Keshan Kissoon A good opportunity to practice presentation skills + 5 extra bonus points for that HW! 70