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

Similar documents
Chapter 8. Representing Multimedia Digitally

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

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

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

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

UNIT 7C Data Representation: Images and Sound

Images, Pixels, ART!! Natural Language and Dialogue Systems Lab

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

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

15110 Principles of Computing, Carnegie Mellon University

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

Unit 1.1: Information representation

How is Information Stored

CS Lecture 10:

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

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

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

Data Representation 1 am/pm Time allowed: 22 minutes

Assistant Lecturer Sama S. Samaan

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

Fundamentals of Multimedia

*Which code? Images, Sound, Video. Computer Graphics Vocabulary

Introduction to Color Theory

Compression and Image Formats

Information representation

MULTIMEDIA SYSTEMS

my bank account number and sort code the bank account number and sort code for the cheque paid in the amount of the cheque.

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

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution

# 12 ECE 253a Digital Image Processing Pamela Cosman 11/4/11. Introductory material for image compression

The worlds we live in. The worlds we live in

What You ll Learn Today

The worlds we live in. The worlds we live in

Unit 4.4 Representing Images

Digital Information. INFO/CSE 100, Spring 2006 Fluency in Information Technology.

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

Images and Colour COSC342. Lecture 2 2 March 2015

Introduction to Photography

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

LECTURE 03 BITMAP IMAGE FORMATS

6.004 Computation Structures Spring 2009

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

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

GUIDELINES & INFORMATION

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

Image Perception & 2D Images

Module 4 Build a Game

Data Representation. "There are 10 kinds of people in the world, those who understand binary numbers, and those who don't."

EE299 Midterm Winter 2007 Solutions

A raster image uses a grid of individual pixels where each pixel can be a different color or shade. Raster images are composed of pixels.

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

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

PHYS225 Lecture 22. Electronic Circuits

Image Optimization for Print and Web

Bitmap Image Formats

A Study on Steganography to Hide Secret Message inside an Image

FUNDAMENTALS OF MULTIMEDIA

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

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

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:

Chapter 3 LEAST SIGNIFICANT BIT STEGANOGRAPHY TECHNIQUE FOR HIDING COMPRESSED ENCRYPTED DATA USING VARIOUS FILE FORMATS

Analog to Digital Converters

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

Digital Imaging and Image Editing

Lecture 2. Digital Basics

A/D Converter An electronic circuit that transforms an analog signal into a digital form that can be used by a computer or other digital circuits.

Unit 1 Digital Content

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

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

EEB5894. Multimedia 4/6/11

Digital Imaging Rochester Institute of Technology

Lossy and Lossless Compression using Various Algorithms

HUFFMAN CODING. Catherine Bénéteau and Patrick J. Van Fleet. SACNAS 2009 Mini Course. University of South Florida and University of St.

Digital Audio. Lecture-6

Ch. 3: Image Compression Multimedia Systems

LECTURE VI: LOSSLESS COMPRESSION ALGORITHMS DR. OUIEM BCHIR

Chapter 4. Digital Audio Representation CS 3570


Chapter 3 Digital Transmission Fundamentals

Entropy, Coding and Data Compression

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

Lossless Image Compression Techniques Comparative Study

Applying mathematics to digital image processing using a spreadsheet

Social Issues. CS Concepts. How does a printed document differ from a digital document? WYSI(not)WYG. What s in the model?

Digital Image Fundamentals

Physical Layer: Outline

Pulse Code Modulation

Photography Basics. Exposure

Multimedia-Systems: Image & Graphics

Social Issues. spam espionage cheating forgery access to your data years from today destroying old records/ data

DigiPoints Volume 1 SINE WAVES VA 3.1 SCTE

Digital Design Laboratory Lecture 7. A/D and D/A

ANALOG-TO-DIGITAL CONVERTERS

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

HTTP transaction with Graphics HTML file + two graphics files

Transcription:

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

Recall that the screen (and other video displays) use red- green- blue lights, arranged in an array of picture elements, or pixels Coffee Cup Pixels 1/30/15 2010-2013 Larry Snyder, CSE 2

1/30/15 2010-2013 Larry Snyder, CSE 3

The Amazing Properties of Colored Light! Caution: It doesn t work like pigment 1/30/15 2010-2013 Larry Snyder, CSE 4

Colored light seems to violate our grade school rule of green = blue + yellow What gives? In pigment, the color we see is the reflected color from white light; the other colors are absorbed 1/30/15 2010-2013 Larry Snyder, CSE 5

1/30/15 2010-2013 Larry Snyder, CSE 6

Analogue information directly applies physical phenomena, e.g. vinyl records 1/30/15 2010-2013 Larry Snyder, CSE 7

Sampling the wave 1/30/15 2010-2013 Larry Snyder, CSE 8

1/30/15 2010-2013 Larry Snyder, CSE 9

Memory! Device Driver" A/D Converter" Memory! Device Driver" D/A Converter" Analog is needed for the real world Digital is best for information world Can be modified, enhanced, remixed, etc Shared, stored permanently, reproduced, 1/30/15 2010-2013 Larry Snyder, CSE 10

Going too slowly misses waves Going too fast keeps lots of redundant info The range of human hearing is 20-20,000 hz Faster or slower, only the dog can hear it Nyquist Rule: Sampling rate must be twice as fast as fastest frequency to be captured For technical reasons, the number is 44,100 hz How precise to sample: 16 bits gives - 32k to 32k 1/30/15 2010-2013 Larry Snyder, CSE 11

Many different forms of online information with special representations JPG, MP3, MPEG, WAV Most forms of multimedia require many, many bits A minute of digital audio: 60 seconds x 44,100 samples per second x 16 bits each x 2 for stereo Is 84,672,000 bits, or 10,584,000 B 1 hour is 635 MB! 1/30/15 2010-2013 Larry Snyder, CSE 12

Often, most of the bits are not needed MP3 audio is less than 1MB/min because many sounds can be eliminated we can t hear them Compression comes in two forms Lossless eliminated bits can be recovered Lossy eliminated bits are gone for good MP3 Susanne Vega sings Tom s Diner https://www.youtube.com/watch?v=vgw3w10qxla 1/30/15 2010-2013 Larry Snyder, CSE 13

Lossless compression seems strange it eliminates bits that can be recovered again weren t they necessary in the first place??? Consider a fax Usually faxes use a scanner that produces rows of 0s and 1s. Compress by counting it s run- length encoding: 000000000000000000000011111110000000011" == 22:0,7:1,8:0,2:1 " 1/30/15 2010-2013 Larry Snyder, CSE 14

Graphics Interchange Format (GIF) uses several kinds of compression Color Table Run Length Encoding Lemple/Ziv/Welch Encoding 1/30/15 2010-2013 Larry Snyder, CSE 15

Compare Hungarian Flag and Italian Flag huflag: [15 9] 45:1, 45:2, 45:3 itflag: [15 x 9] 5:3,5:2,5:1,5:3,5:2,5:1,5:3,5:2,5:1, 5:3,5:2,5:1,5:3,5:2,5:1,5:3,5:2,5:1, 5:3,5:2,5:1,5:3,5:2,5:1,5:3,5:2,5:1 1/30/15 2010-2013 Larry Snyder, CSE 16

Areas of similar color are represented by one shade it s OK for a while 1/30/15 2010-2013 Larry Snyder, CSE 17

Facts about physical representation: Information is represented by the presence or absence of a physical phenomenon (PandA) Hole punched in a card; no hole [Hollerith] Dog barks in the night; no barking in the night [Holmes] Wire is electrically charged; wire is neutral ETC Abstract all these cases with 0 and 1; it unifies them so we don t have to consider the details 1/30/15 2010-2013 Larry Snyder, CSE 18

Binary is sufficient for number representation (place/value) and arithmetic The number base is 2, instead of 10 Binary addition is just like addition in any other base except it has fewer cases better for circuits All arithmetic and standard calculations have binary equivalents Pixels represented by amount of light intensity We conclude: bits work for quantities 1/30/15 2010-2013 Larry Snyder, CSE 19

Bytes illustrate that bits can be grouped in sequence to generate unique patterns 2 bits in sequence, 2 2 = 4 patterns: 00, 01, 10, 11 4 bits in sequence, 2 4 = 8 patterns: 0000, 0001, 8 bits in sequence, 2 8 =256 patterns: 0000 0000, ASCII groups 8 bits in sequence They seem to be assigned intelligently, but they re just patterns 1/30/15 2010-2013 Larry Snyder, CSE 20

Compare binary arithmetic to ASCII Binary encodes the positions to make using the information (numbers) easy, like for addition ASCII assigns some pattern to each letter Given any finite set of things colors, computer addresses, English words, etc. We might figure out a smart way to represent them as bits colors can give light intensity of RGB We can just assign patterns, and manipulate them by pattern matching red can be 0000 0001, dark red 0000 0010, etc. 1/30/15 2010-2013 Larry Snyder, CSE 21

What does this represent: 0000 0000 1111 0001 0000 1000 0010 0000? You don t know until you know how it was encoded As a binary number: 15,796,256 As a color, RGB(241,8,32) As a computer instruction: Add 1, 7, 17 As ASCII: n u b s ñ <space> IP Address: 0.241.8.32 Hexadecimal number: 00 F1 08 20 à to infinity and beyond 1/30/15 2010-2013 Larry Snyder, CSE 22

This is the principle: Bias-free Universal Medium Principle: Bits can represent all discrete information; bits have no inherent meaning Bits are it!!! Computers encode information with bits, not numbers the bits might be numbers, but they might be a lot of other stuff instead 1/30/15 2010-2013 Larry Snyder, CSE 23

Goal Part 1: HW 11, due Tuesday Part 2: Lab 7, do it in lab Just Do It! 1/30/15 2010-2013 Larry Snyder, CSE 24