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

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

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

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

What You ll Learn Today

CS Lecture 10:

Q A bitmap file contains the binary on the left below. 1 is white and 0 is black. Colour in each of the squares. What is the letter that is reve

Image Perception & 2D Images

Introduction to Multimedia Computing

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

HTTP transaction with Graphics HTML file + two graphics files

TODAY STANDARD COLORS RGB COLOR CS 115: COMPUTING FOR SOCIO-TECHNO WEB REPRESENTATION OF TEXT, NUMBERS AND CODE

Byte = More common: 8 bits = 1 byte Abbreviation:

1. Describe how a graphic would be stored in memory using a bit-mapped graphics package.

15110 Principles of Computing, Carnegie Mellon University

Compression and Image Formats

Bit Depth. Introduction

UNIT 7B Data Representa1on: Images and Sound. Pixels. An image is stored in a computer as a sequence of pixels, picture elements.

15110 Principles of Computing, Carnegie Mellon University

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

CSC 170 Introduction to Computers and Their Applications. Lecture #3 Digital Graphics and Video Basics. Bitmap Basics

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

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

Learning Outcomes. Black and White pictures. Bitmap Graphics. COMPSCI 111/111G Digital Images and Vector Graphics

COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. Digital Images Vector Graphics

CS101 Lecture 01: Introduction. What You ll Learn Today

CMPSC 390 Visual Computing Spring 2014 Bob Roos Review Notes Introduction and PixelMath

Fundamentals of Multimedia

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

Course Objectives & Structure

Lecture #2: Digital Images

Unit 4.4 Representing Images

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

LECTURE 03 BITMAP IMAGE FORMATS

UNIT 7C Data Representation: Images and Sound

Image Optimization for Print and Web

Applying mathematics to digital image processing using a spreadsheet

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Digital Imaging & Photoshop

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

Digital Asset Management 2. Introduction to Digital Media Format

The BIOS in many personal computers stores the date and time in BCD. M-Mushtaq Hussain

How is Information Stored

Introduction to Photography

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

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

Module 4 Build a Game

Digital Imaging and Image Editing

UNIT 7C Data Representation: Images and Sound Principles of Computing, Carnegie Mellon University CORTINA/GUNA

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Bitmap Image Formats

Adding some light to computing. Lawrence Snyder University of Washington, Seattle

Computer and Machine Vision

ITP 140 Mobile App Technologies. Images

Digital Images. Digital Images. Digital Images fall into two main categories

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

Assignment: Light, Cameras, and Image Formation

6. Graphics MULTIMEDIA & GRAPHICS 10/12/2016 CHAPTER. Graphics covers wide range of pictorial representations. Uses for computer graphics include:

INTRODUCTION TO COMPUTER GRAPHICS

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

Human Vision, Color and Basic Image Processing

Images and Displays. Lecture Steve Marschner 1

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number

White light can be split into constituent wavelengths (or colors) using a prism or a grating.

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

TEST INFORMATION: 40 questions 50 minutes 70% minimum required to pass. Score is based on a 1000 pt system so passing will be a 700.

The next table shows the suitability of each format to particular applications.

Digital Images: A Technical Introduction

Technology and digital images

Chapter 8. Representing Multimedia Digitally

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

CS 376b Computer Vision

Assistant Lecturer Sama S. Samaan

The worlds we live in. The worlds we live in

A New Representation of Image Through Numbering Pixel Combinations

Digital Imaging with the Nikon D1X and D100 cameras. A tutorial with Simon Stafford

Images and Colour COSC342. Lecture 2 2 March 2015

Camera Image Processing Pipeline: Part II

Picsel epage. Bitmap Image file format support

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Digital photo sizes and file formats

The Strengths and Weaknesses of Different Image Compression Methods. Samuel Teare and Brady Jacobson

Factors to Consider When Choosing a File Type

Color image Demosaicing. CS 663, Ajit Rajwade

Wireless Communication

Lecture 9: Digital Images

Raster (Bitmap) Graphic File Formats & Standards

comp 471 / cart 498c computer graphics: real-time video Monday 11 Sep 06

The Need for Data Compression. Data Compression (for Images) -Compressing Graphical Data. Lossy vs Lossless compression

Colors in Images & Video

Astronomy and Image Processing. Many thanks to Professor Kate Whitaker in the physics department for her help

Computer Programming

EC-433 Digital Image Processing

Specific structure or arrangement of data code stored as a computer file.

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

Color Image Processing

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Introduction to Color Theory

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

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

Transcription:

CS101 Lecture 12: Digital Images Sampling and Quantizing Using bits to Represent Colors and Images Aaron Stevens (azs@bu.edu) 20 February 2013 What You ll Learn Today What is digital information? How to describe an image What is color? How do pictures get encoded into binary representation? Why do images take so long to download from the web? 1

2/22/13 A picture is worth a thousand words? Describe this image with enough detail to recreate it. How would a computer describe the image? Analog and Digital Information We say that information can be represented in one of two ways: analog or digital. Analog A continuous representation, analogous to the actual information it represents. Digital A discrete representation, breaking the information up into finite elements. 2

Analog Information Example: Analog Thermometer The mercury (or alcohol) rises continuously in direct proportion to the temperature. What exactly is this reading? Digital Information Example: Digital Thermometer This reading is discrete. Some detail is lost in converting to digital information. What is the actual temperature? 3

Analog and Digital Information Computers store information in binary numbers. For anything else, we need to digitize the data. Digitizing Creating a discrete representation of analog data, suitable for storage and manipulation by a digital computer. Digitizing involves sampling and quantizing. Consider this picture. How to represent it digitally (i.e. in bits)? 4

Sampling Activity: trace the picture For each square you must fill it in completely or else leave it blank. 36 squares Sampling Activity: trace the picture For each square you must fill it in completely or else leave it blank. 144 squares 5

Digitizing an Image: Sampling Sampling: Taking measurements (of color) at discrete locations within the image. What sampling rate should we use? Photo is 2.5 x 3.5 inches Digitizing an Image: Sampling Sampling: Taking measurements (of color) at discrete locations within the image. 16 samples per inch (in each direction) 6

Digitizing an Image: Sampling Sampling: Measure the color for each pixel, and record that color. 16 pixels per inch Pixel is short for picture element - a discrete point of light (color) in a picture. Digitizing an Image: Sampling Sampling: Measure the color for each pixel, and record that color. 32 pixels per inch Pixel is short for picture element - a discrete point of light (color) in a picture. 7

What Your Digital Cameras Does An image sensor measures the color at each pixel. Megapixel ~ 1 million pixels One megapixel: 1200 * 900 10 megapixels: 3872 * 2592 iphone 5 camera: 3264 x 2448 ~ 8 megapixels Pixelation Information between pixels is lost. Pixel interpolation attempts to recreate the missing information. 8

What is color? Light is a electromagnetic waveform. Color is how we perceive different wave lengths. AM radio waves are about 100 meters FM radio/tv waves are about 1 meter Light waves are about 0.000005 meters Measuring Colors Color is how we perceive of the frequencies of light that reach the retinas of our eyes. The human retina has three types of color photoreceptor cone cells that correspond to the colors of red, green, and blue. Spectra of visible light (in nm)" 9

RGB Color Encoding The RGB color model is an additive model, in which red, green, and blue (RGB) light is combined in various ways to reproduce other colors. + + = Quantization of colors Quantization is the process of assigning discrete values to measurements taken in samples. We need to make choices about: Range of values (minimum, maximum) Number of steps between min and max 10

RGB Color Encoding We quantify each of the red, green, and blue components of a color along a continuum from totally off to totally on. 0% 100% Quantization: Color Depth Color Depth refers to the number of bits used to represent a color. Color Graphics Adapter The original CGA color monitor from IBM (~1981). 6 bits total, 2 bits per color supported up to 64 possible colors (2 6 = 64) (only 16 at a time, though) The standard 16 CGA colors 11

Why Color Depth Matters 4-bit color (16 possible colors) 8-bit color (256 possible colors) 24-bit color (16,777,216 possible colors) 24-bit color depth is often called TrueColor: 8 bits for red, 8 bits for blue, 8 bits for green 24 color bits 2 24 or 16,777,216 colors 12

24-bit Color Depth We quantify each of the red, green, and blue components of a color along a continuum from totally off to totally on. 00000000 or 0x00 11111111 or 0xFF 10010100 0x94 00000000 0x00 11010011 0xD3 A Sampling of RGB Color Codes 13

Raster/Bitmapped Graphics Storage of data on a pixel-by-pixel basis Common formats include: Bitmap (BMP), GIF, JPEG, and PNG BMP images are administratively simple: each pixel is just recorded as it s color codes. GIF, JPG, and PNG images use compression algorithms How much data is for a BMP image? Typical image size might be 1024 by 768 pixels (= 786,432 pixels) 786,432 pixels * 3 bytes per pixel = 2,359,296 bytes (for one picture) A 10Mpixel picture would be 30,000,000 bytes. A dog in hexadecimal. 14

What You Learned Today Analog and Digital Information Sampling: Pixels and Resolution RGB Color Encoding Quantizing: Color Depth Factors in image file size 15

Student To Dos Readings: Wong ch 1 pp 13-19, ch 2, pp 26-44 (today) Wong ch 3, pp 66-86 (Friday) Red-Blue combinations 16

RGB Color Model Color is expressed as an RGB value three numbers that indicate the relative contribution of each of these primary colors. Digitizing an Image: Sampling Consider this drawing. 17

Digitizing an Image: Sampling To sample it, we apply a grid system. Each cell is a pixel. A pixel is either it s colored in or not ( on or off ) Digitizing an Image: Sampling To collect more detail, sample the picture more frequently (more pixels per unit of space). 18