1 CS6825: Digital images How are DIGITAL images created. How are DIGITAL images created. Previous lecture we discussed how ANALOG images are created Previous.

Slides:



Advertisements
Similar presentations
 Image Characteristics  Image Digitization Spatial domain Intensity domain 1.
Advertisements

IT-101 Section 001 Lecture #8 Introduction to Information Technology.
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
School of Computing Science Simon Fraser University
Digital Cameras CCD (Monochrome) RGB Color Filter Array.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Digital Images The nature and acquisition of a digital image.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Representing Images. Goals for Image Representation digitization & resolution digitization & resolution representing color representing color color depth.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP3 Digital Images Miguel Tavares Coimbra.
The Digital Image.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
Computer Based Data Acquisition Basics. Outline Basics of data acquisition Analog to Digital Conversion –Quantization –Aliasing.
ORE 654 Applications of Ocean Acoustics Lecture 6a Signal processing
Digital Images Chapter 8 Exploring the Digital Domain.
Chapter 2, Exploring the Digital Domain
Lecture 5: Signal Processing II EEN 112: Introduction to Electrical and Computer Engineering Professor Eric Rozier, 2/20/13.
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
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.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
ISAT 300 Computer-Based Instrumentation (part 2) Sampling and A/D Converters 11/14/01.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
09/19/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Dithering.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
3. Image Sampling & Quantisation 3.1 Basic Concepts To create a digital image, we need to convert continuous sensed data into digital form. This involves.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
Digital Media Dr. Jim Rowan ITEC 2110 Chapter 3. Roll call.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Computer Vision Introduction to Digital Images.
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.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
Computer Science 121 Scientific Computing Winter 2014 Chapter 14 Images.
Digital Media Dr. Jim Rowan ITEC 2110 Chapter 3. Roll call.
Graphics II Image Processing I. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
infinity-project.org Engineering education for today’s classroom Outline Images Then and Now Digitizing Images Design Choices in Digital Images Better.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Dr. Engr. Sami ur Rahman Digital Image Processing Lecture 3: Image Formation.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 2 Analog to Digital Conversion University of Khartoum Department of Electrical and Electronic.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
Representing images.
Binary Representation in Audio and Images
Miguel Tavares Coimbra
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Image Processing Digital image Fundamentals. Introduction to the course Grading – Project: 30% – Midterm Exam: 30% – Final Exam : 40% – Total: 100% –
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Digital 2D Image Basic Masaki Hayashi
Chapter I Digital Imaging Fundamentals
Image quantization By Student Manar naji. quantization The values obtained by sampling a continuous function usually comprise of an infinite set or.
Representing Images 2.6 – Data Representation.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
How to Digitize the Natural Color
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
ITEC2110, Digital Media Chapter 1 Background & Fundamentals
Dr. Jim Rowan ITEC 2110 Chapter 3
Basic Concepts of Digital Imaging
Visuals are analog signals...
Miguel Tavares Coimbra
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Presentation transcript:

1 CS6825: Digital images How are DIGITAL images created. How are DIGITAL images created. Previous lecture we discussed how ANALOG images are created Previous lecture we discussed how ANALOG images are created

2 Making Digital images 1. Sampling image into pixels---- "picture element" 1. Sampling image into pixels---- "picture element" 2. Quantize the pixel value to make discrete or finite 2. Quantize the pixel value to make discrete or finite

3 Sampling – the first step Model sensor “array” for a 2D camera, as a 2D array as shown on right. Model sensor “array” for a 2D camera, as a 2D array as shown on right. We use rectangles even though the actual shape is not exactly this. We use rectangles even though the actual shape is not exactly this. Some researches use more complicated sesnor array models …but, 2D array works adequately for many applications Some researches use more complicated sesnor array models …but, 2D array works adequately for many applications

4 SAMPLING in more detail 1. fit a grid over the image pixel location (r,c)=(row,column) pixel location (r,c)=(row,column) 2.Get value of pixel Pixel(r,c) =(R,G,B) Pixel(r,c) =(R,G,B) R = ∫ ∫ red(x,y) dx dy R = ∫ ∫ red(x,y) dx dy (over pixel area) (over pixel area) red(x,y) = function of red spectral energy at each contiguous point in your sensor red(x,y) = function of red spectral energy at each contiguous point in your sensor

5 Resolution, Size of Image Image size = (rows)*(colomns) Image size = (rows)*(colomns) Resolution = size of image = #pixels Resolution = size of image = #pixels low resolution ---> # of pixels is small low resolution ---> # of pixels is small high resolution ----> # of pixels is big high resolution ----> # of pixels is big HOW DO YOU SELECT A RESOLUTION? HOW DO YOU SELECT A RESOLUTION? if grid is too large you will get jagged edgesif grid is too large you will get jagged edges This is called Aliasing.This is called Aliasing. No AliasingAliasing

6 QUANTIZATION Convert continuous values to discrete e.g > 1.0 Convert continuous values to discrete e.g > 1.0 Instead of infinite colors we have a finite number of colors. Instead of infinite colors we have a finite number of colors. Remember in computers we store things in bits. Remember in computers we store things in bits. Cat image at 24 bits / pixel (over 16 million colors) 8 bits each field – 8 /red, 8/green, 8/blue Cat image at 4 bits / pixel (only 16 colors)

7 How to QUANTIZE Simple Quantization scheme: Simple Quantization scheme: The rule to convert If Z k-1 <= pixel (r,c) <= Z k If Z k-1 <= pixel (r,c) <= Z k then new pixel (r,c) = Qk then new pixel (r,c) = Qk Z i = decision level (i = 0 to N) Z i = decision level (i = 0 to N) Q k = quantization level (k = 0 to M) Q k = quantization level (k = 0 to M)

8 More Quantization We can have more complicated quantization schemes as indicated by the figures here and the quantization boundaries in the red-green space We can have more complicated quantization schemes as indicated by the figures here and the quantization boundaries in the red-green space Image with no blue values only red and green The color space above produced by Photoshop Using 16-colors only, shows partitioning of space

9 More Quantization We can have more complicated quantization schemes as indicated by the figures here and the quantization boundaries in the red-green space We can have more complicated quantization schemes as indicated by the figures here and the quantization boundaries in the red-green space Image with no blue values only red and green The color space above produced by Photoshop Using 16-colors only, shows partitioning of space

10 With Our Simple Step Function Conversion – how select Q’s & Z’s The goal is to choose Q's & Z's to minimize error produced from quantization, E where The goal is to choose Q's & Z's to minimize error produced from quantization, E where E = Expected value{(pixel- newpixel)*(pixel-newpixel )} = mean squared error = mean squared errorNote: error= (pixel value - new value) expected value = a type of average or mean If we try to minimize this error this leads to the following equation If we try to minimize this error this leads to the following equation Qk= (Z k+1 + Z k ) / 2 So, Steps to follow are: So, Steps to follow are: choose Z k calculate Q's via above equation CALLED “ UNIFORM QUANTIZATION” as it splits up the space uniformly (evenly).

11 So, how do we choose Z’s? Basically, it is function of image content Basically, it is function of image content You want more levels (Z values) in greyvalue or color ranges in which much of the image pixels fall. You want more levels (Z values) in greyvalue or color ranges in which much of the image pixels fall.

12 Loss in making a Digital Image? Loss from sampling? Loss from sampling? Not if choose the correct number of samples.Not if choose the correct number of samples. Over-Sampling = when you have more samples than you needOver-Sampling = when you have more samples than you need Under-Sampling = not enough samples are usedUnder-Sampling = not enough samples are used Loss from quantization? Loss from quantization? Always unless your analog image miraculously happens to only have values at the quantization levels.Always unless your analog image miraculously happens to only have values at the quantization levels. Ok samplesUnder sampled 256 levels8 levels

13 How to choose the number of samples (pixels) You need 2 times the Nyquest rate. You need 2 times the Nyquest rate. Nyquest rate= function of highest frequency in the image Nyquest rate= function of highest frequency in the image highest frequency in image = function of fastest varying spatial patter in the image = f(how fast things change)highest frequency in image = function of fastest varying spatial patter in the image = f(how fast things change)

14 Conclusion Discussed 2 steps involved in creating a digital image from an analog image: Sampling + Quantization. Discussed 2 steps involved in creating a digital image from an analog image: Sampling + Quantization. Discussed schemes for both Sampling and Quantization. Discussed schemes for both Sampling and Quantization. Discussed how to avoid loss of information in Sampling and that you always loose information in the Quantization process. Discussed how to avoid loss of information in Sampling and that you always loose information in the Quantization process.