Image Processing and Sampling

Slides:



Advertisements
Similar presentations
Sampling and Reconstruction
Advertisements

Digital Image Processing Lecture 3: Image Display & Enhancement
Image Data Representations and Standards
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
School of Computing Science Simon Fraser University
EEE 498/591- Real-Time DSP1 What is image processing? x(t 1,t 2 ) : ANALOG SIGNAL x : real value (t 1,t 2 ) : pair of real continuous space (time) variables.
Cornell CS465 Fall 2004 Lecture 2© 2004 Steve Marschner 1 Displays.
Resolving the Problem Resolution: Concepts & Definitions.
CS248 Midterm Review. CS248 Midterm Mon, November 3, 7-9 pm, Gates B01 Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
SWE 423: Multimedia Systems Chapter 5: Video Technology (1)
Half Toning. Continuous Half Toning Color Half Toning.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphicsIntroduction Dr. Eng. Farag Elnagahy
Computer Vision Lecture 3: Digital Images
CS248 Midterm Review. CS248 Midterm Mon, November 5, 7-9 pm, Terman Aud Mon, November 5, 3-5 pm, Gates 392 Mostly “short answer” questions Covers through.
Digital Images The nature and acquisition of a digital image.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
Image Printing and Display
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
ECE 472/572 – Digital Image Processing Lecture 2 – Elements of Visual Perception and Image Formation 08/25/11.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Multimedia Specification Design and Production 2012 / Semester 1 / L2 Lecturer: Dr. Nikos Gazepidis
Page 18/30/2015 CSE 40373/60373: Multimedia Systems 4.2 Color Models in Images  Colors models and spaces used for stored, displayed, and printed images.
Digital Images The fundamental properties of the digital photographic image. * Monochrome Images * Color Images * What is a halftone?
Department of Physics and Astronomy DIGITAL IMAGE PROCESSING
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
2/3/04© University of Wisconsin, CS559 Spring 2004 Last Time Color –Transforming between two color spaces –A gamut is the set of displayable colors in.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
Digital Image: Representation & Processing (2/2) Lecture-3
The Digital Image Dr. John Ryan.
Video Video.
Color and Resolution Introduction to Digital Imaging.
A pixel is not a little square & A voxel is not a little cube Chung ji hye.
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Which is the Pink Pen? Here is the Pink Pen (Example taken from
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
DIGITAL IMAGE PROCESING NASA LUNAR AND PLANETARY EXPLORATION.
Image Coloring. Halftone Halftone is the reprographic technique that simulates continuous tone imagery through the use of dots, varying either in size,
09/17/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color Spaces File formats.
Graphics: Conceptual Model Real Object Human Eye Display Device Graphics System Synthetic Model Synthetic Camera Real Light Synthetic Light Source.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
LUT Method For Inverse Halftone 資工四 林丞蔚 林耿賢. Outline Introduction Methods for Halftoning LUT Inverse Halftone Tree Structured LUT Conclusion.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Image 2013, Fall. Image Processing Quantization  Uniform Quantization  Halftoning & Dithering Pixel Operation  Add random noise  Add luminance  Add.
Advanced Computer Graphics CSE 190 [Winter 2016], Lecture 2 Ravi Ramamoorthi
Homework 2 (Due: 3/26) A. Given a grayscale image I,
3-1 Chapter 3: Image Display The goodness of display of an image depends on (a) Image quality: i) Spatial resolution, ii) Quantization (b) Display device:
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Graphics II Image Processing I. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Images, Display, Perception
Image Processing and Sampling
Image 2016, Fall.
Distributed Ray Tracing
Advanced Computer Graphics
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Department of Electrical and Computer Engineering
Data Conversion Slides by Prof. Brian L. Evans, Dept. of ECE, UT Austin, and Dr. Thomas D. Kite, Audio Precision, Beaverton, OR
1.2 Design of Periodic, Clustered-Dot Screens
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Digital Image Fundamentals
Digital Image Processing Lecture 3: Image Display & Enhancement
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
REDUKSI NOISE Pertemuan-8 John Adler
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
Presentation transcript:

Image Processing and Sampling Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006

Overview Image representation Halftoning and dithering What is an image? Halftoning and dithering Trade spatial resolution for intensity resolution Reduce visual artifacts due to quantization

What is an Image? An image is a 2D rectilinear array of pixels Continuous image Digital image

What is an Image? An image is a 2D rectilinear array of pixels Continuous image Digital image A pixel is a sample, not a little square!

What is an Image? An image is a 2D rectilinear array of pixels Continuous image Digital image A pixel is a sample, not a little square!

Image Acquisition Pixels are samples from continuous function Photoreceptors in eye CCD cells in digital camera Rays in virtual camera

Image is reconstructed Image Display Re-create continuous function from samples Example: cathode ray tube Image is reconstructed by displaying pixels with finite area (Gaussian)

Image Resolution Intensity resolution Spatial 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 Width x Height Depth Rate NTSC 640 x 480 8 30 Workstation 1280 x 1024 24 75 Film 3000 x 2000 12 24 Laser Printer 6600 x 5100 1 - Resolutions Typical

Sources of Error Intensity quantization Spatial aliasing Not enough intensity resolution Spatial aliasing Not enough spatial resolution Temporal aliasing Not enough temporal resolution

Overview Image representation Halftoning and dithering What is an image? Halftoning and dithering Reduce visual artifacts due to quantization

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

Uniform Quantization P(x, y) = trunc(I(x, y) + 0.5) I(x,y) P(x,y) (2 bits per pixel)

Uniform Quantization Images with decreasing bits per pixel: 256 bpp 32 bpp 8 bpp 2 bpp Notice the quantization error, most noticeable in the 8 and 2 bpp images – large flat areas with no detail 8 bits 4 bits 2 bits 1 bit

Reducing Effects of Quantization Halftoning Classical halftoning Dithering Error diffusion dither Random dither Ordered dither

Classical Halftoning Use dots of varying size to represent intensities Area of dots proportional to intensity in image I(x,y) P(x,y)

Classical Halftoning Newspaper image from North American Bridge Championships Bulletin, Summer 2003

Halftone patterns Use cluster of pixels to represent intensity Trade spatial resolution for intensity resolution Figure 14.37 from H&B

Dithering Distribute errors among pixels Exploit spatial integration in our eye Display greater range of perceptible intensities Uniform quantization discards all errors i.e. all “rounding” errors Dithering is also used in audio, by the way

Floyd-Steinberg dithering Any “rounding” errors are distributed to other pixels Specifically to the pixels below and to the right 7/16 of the error to the pixel to the right 3/16 of the error to the pixel to the lower left 5/16 of the error to the pixel below 1/16 of the error to the pixel to the lower right Assume the 1 in the middle gets “rounded” to 0

Error Diffusion Dither Spread quantization error over neighbor pixels Error dispersed to pixels right and below      +  +  +  = 1.0 Figure 14.42 from H&B

Floyd-Steinberg dithering Floyd-Steinberg dithering is a specific error dithering algorithm Uniform Quantization (1 bit) Floyd-Steinberg Dither (1 bit) Floyd-Steinberg Dither (1 bit) (pure B&W) Original (8 bits)

Random Dither P(x, y) = trunc(I(x, y) + noise(x,y) + 0.5) Randomize quantization errors Errors appear as noise I(x,y) P(x,y) I(x,y) P(x,y) P(x, y) = trunc(I(x, y) + noise(x,y) + 0.5)

Random Dither Original (8 bits) Uniform Quantization (1 bit) Random

Ordered Dither i = x mod n j = y mod n e = I(x,y) - trunc(I(x,y)) Pseudo-random quantization errors Matrix stores pattern of thresholds i = x mod n j = y mod n e = I(x,y) - trunc(I(x,y)) if (e > D(i,j)) P(x,y) = ceil(I(x, y)) else P(x,y) = floor(I(x,y))

Ordered Dither Bayer’s ordered dither matrices Reflections and rotations of these are used as well

Ordered Dither Original (8 bits) Uniform Quantization (1 bit) 4x4 Ordered Dither (1 bit)

Dither Comparison Original (8 bits) Random Dither (1 bit) Ordered Floyd-Steinberg Dither (1 bit)

Color dithering comparison Original image Web-safe palette, no dithering Web-safe palette, FS dithering Optimized 256 color palette Optimized 16 color palette Optimized 16 color palette FS dithering No dithering FS dithering

Summary Image representation Halftoning and dithering A pixel is a sample, not a little square Images have limited resolution Halftoning and dithering Reduce visual artifacts due to quantization Distribute errors among pixels Exploit spatial integration in our eye Sampling and reconstruction Reduce visual artifacts due to aliasing Filter to avoid undersampling Blurring is better than aliasing