Graphics II Image Processing I. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Image Data Representations and Standards
Bitmapped Graphic Data
Digital Imaging and Image Analysis
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Chapter 2 Digital data Ola A. Younis. Elements of digital media Symbols : representation for something else. Example: a group of letters often serve as.
Capturing and optimising digital images for research Gilles Couzin.
School of Computing Science Simon Fraser University
Output Primitives Computer Graphics.
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
Light to Electricity: lines begin and end in black (low signal level) called Blanking between blanking is the active video scanning is precisely controlled.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
4.1 Digital Multimedia Elements
Visual Representation of Information
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
IT Introduction to Information Technology CHAPTER 05 - INPUT.
The Digital Image.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Multimedia Specification Design and Production 2012 / Semester 1 / L2 Lecturer: Dr. Nikos Gazepidis
Digital Images Chapter 8 Exploring the Digital Domain.
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.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Lecture 3. Fundamentals of Computer Graphics. Computer Graphics, a very broad term Fields Related to Computer Graphics Bitmap/Vector graphics, 2D/3D graphics,
Lecture 5: Signal Processing II EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/20/13.
Dr. S.M. Malaek Assistant: M. Younesi
CSCI-235 Micro-Computers in Science Hardware Part II.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
Copyright 1998, S.D. Personick. All Rights Reserved1 Telecommunications Networking I Lectures 2 & 3 Representing Information as a Signal.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
Digital Image: Representation & Processing (2/2) Lecture-3
3. Multimedia Systems Technology
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
CMPD273 Multimedia System Prepared by Nazrita Ibrahim © UNITEN2002 Multimedia System Characteristic Reference: F. Fluckiger: “Understanding networked multimedia,
The Digital Image Dr. John Ryan.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Image Processing and Sampling
Raster Graphics. An image is considered to be made up of small picture elements (pixels). Constructing a raster image requires setting the color of each.
Which is the Pink Pen? Here is the Pink Pen (Example taken from
Media signal Media format Last updated on June 15, 2010 Doug Young Suh
Quiz # 1 Chapters 1,2, & 3.
COMPUTER GRAPHICS. Once you scan an image or take a picture with your digital camera, it becomes digitized. Made up of hundreds of thousands of pixels.
Digital Video Digital video is basically a sequence of digital images  Processing of digital video has much in common with digital image processing First.
CSCI-100 Introduction to Computing Hardware Part II.
IT-101 Section 001 Lecture #9 Introduction to Information Technology.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 4 – Audio and Digital Image Representation Klara Nahrstedt Spring 2010.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
Advanced AV Production Practicum Math for The Audio Video Professional Calculating Single File Sizes Copyright © Texas Education Agency, All rights.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
DIGITAL MEDIA FOUNDATIONS
Images Data Representation.
Data Representation Images.
Binary Representation in Audio and Images
Image Processing and Sampling
Image Segmentation Classify pixels into groups having similar characteristics.
Quantization and Encoding
Chapter I, Digital Imaging Fundamentals: Lesson II Capture
Chapter 2 Data Representation.
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Presentation transcript:

Graphics II Image Processing I

Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University of Louisiana at Lafayette. I’d like to thank Assoc. Prof. Dr. William Bares who create such a good work on these lecture notes.

Digitization Multimedia data captured from "real-world" formats such as printed photographs, audio tapes, video tapes, or live video cameras must be digitized or converted from their original analog form into digital form for computer processing. Digitizing hardware devices such as scanners or digital cameras form a digital representation of an analog source by sampling the value of the analog source over a discrete number of evenly spaced sample points.

Sampling Resolution and Sampling Rate Images Flatbed color scanners can digitize printed images at sampling resolutions typically ranging from 75 dots per inch (DPI) to 2400 dots per inch. The sampling points are distributed evenly in both horizontal and vertical dimensions. For example, if a 4" x 5" photograph is scanned at a 300 DPI sampling resolution, then 1,800,000 (4" x 5" x 300 x 300) sample points are scanned.

Sampling Resolution and Sampling Rate Video Video digitizers capture S-VHS video signals for a full-size frame at 704 x 482 points. Video sequences require the capture of one full frame every 30th of a second. Audio The intensity of an analog audio source is sampled over time, typically at rates of 11 kHz, 22 kHz, or 44 kHz (1 kHz = 1,000 times per second).

Quantization Each sampled value is represented by a fixed number of bits. Audio samples are either 8 or 16 bits and image or video sample points can range from 1 to 48 bits per point. A sample represented by n bits can assume one of 2 n discrete values. Quantization is the process of mapping an analog value to one of a fixed number of discrete values.

Quantization Reconstruction is the conversion of a digitized sample value back into an analog value. A corresponding mapping is defined to map each discrete quantized value into an analog value. However, the reconstructed analog value may not be identical to the original analog sample value thereby introducing quantization error.

Quantization Errors absoluteError = reconstructedValue - originalAnalogValue relativeError = (reconstructedValue - originalAnalogValue) / originalAnalogValue

Example of Quantization Digitize the given signal represented by f(x) = 0.25 * x 2 for sample point x = 3. Digital code Quantization of Analog ValuesReconstructed Analog Value [ 0.0, 1.0 ) [ 1.0, 2.0 ) [ 2.0, 3.0 ) [ 3.0, 4.0 ) [ 4.0, 5.0 ) [ 5.0, 6.0 ) [ 6.0, 7.0 ) [ 7.0, 8.0 )7.5

What is the value of the analog signal at sample point x = 3.0? f(3.0) = 0.25 * 32 = 2.25 What digitized code value is used to represent the analog sample value? 010 Give the analog value reconstructed from the digitized value. 2.5 What is the absolute quantization error? | | = 0.25 What is the relative quantization error? | | / 2.25 = 0.11

Color Quantization (a) 24-bit Color Image(b) Quantized down to 2-bit per pixel CLUT Red to white color ramp quantized to 4 colors

Color Quantization The color quantization process entails the following two steps: 1) Analyze the original 24-bit RGB image to determine the palette colors. The popularity algorithm determines the set of palette colors based on the N most frequently appearing color values in the images, where N is the number of colors in the palette. 2) For each pixel of the original image, determine the best matching palette color. One typical method is to select the palette color having the smallest difference from the original color value.

Color Quantization Example, Original color value = (100,20,40) Palette color value = (90,25,50) Difference = |100-90| 2 + |20-25| 2 + |40-50| 2

Dithering The process of simply replacing a 24-bit pixel value with the nearest matching palette color can result in distinctly sharp transition from one palette color to the next as shown in figure. Error diffusion dithering 4-color image

Random Dither Apply a random function to determine the quantized color values. For example, an analog value of 3.25 between discrete quantized values 3 and 4 can be quantized to 3.25% of the time and to 4.75% of the time. Quantized Color Value = floor( original color value + random)

Ordered Dither Fast approximation to random dither that uses repeated patterns in place of a call to a random number generator. Its’ more efficient than random dither but does introduce some noticeable artifacts due to the repeated pattern. Quantized Color Value = floor(original color value + Pattern(x mod 8)) where Pattern(0..7) = {1/16,9/16,5/16,13/16,3/16,11/16,7/16,15/16} x = X-Coordinate of pixel to be dithered

Error Diffusion Dither Distributes the error between the actual value and the quantized value to nearby pixels. Error = 0; For (x=0;x<NumPixels;x++) { QuantizedValue(x) = floor(originalColorValue(x) + error); Error += originalColorValue(x) – QuantizedValue(x); }