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

Slides:



Advertisements
Similar presentations
Chapter 5 Light, Sound, Magic: Representing Multimedia Digitally Digitizing is more than letters, numbers, and metadata It is also photos, audio, and video.
Advertisements

Learning Objectives Explain how RGB color is represented in bytes
Chapter 8 Representing Multimedia Digitally. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Chapter 8 Representing Multimedia Digitally. Learning Objectives Explain how RGB color is represented in bytes Explain the difference between “bits” and.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 11: How does.
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Connecting with Computer Science, 2e
Copyright 2003 Monash University IMS5401 Web-based Information Systems Topic 2: Elements of the Web (d) Digital representation.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Multimedia Digitally Light, Sound, Magic lawrence snyder c h.
Chapter 11 Light, Sound, Magic: Representing Multimedia Digitally.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
Chapter 11 Light, Sound, Magic: Representing Multimedia Digitally.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Chapter 11 Light, Sound, Magic: Representing Multimedia Digitally.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
CSCI-235 Micro-Computers in Science Hardware Part II.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?
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.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Computing in the Modern World BCS-CMW-7: Data Representation Wayne Summers Marion County October 25, 2011.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Text, Images, Video and Sound CS 1 Introduction to Computers and Computer Technology Rick Graziani Spring 2015.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Chapter 2 Computer Hardware
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.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Images, Sound, and Multimedia. No Surprises Images, Sound, Music, and Movies – It’s all numbers – Binary Numbers Today we’ll discuss how multimedia is.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Quiz # 1 Chapters 1,2, & 3.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Class 9 LBSC 690 Information Technology Multimedia.
CSCI-100 Introduction to Computing Hardware Part II.
 Functions package up computation … when do we use them? All the time.  Write some simple code to achieve a goal … 12/20/2015© 2010 Larry Snyder, CSE1.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
DIGITAL MEDIA FOUNDATIONS
Chapter 8 & 11: Representing Information Digitally
Fluency with Information Technology
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Vocabulary byte - The technical term for 8 bits of data.
Binary Representation in Audio and Images
Too much information running through my brain.
Vocabulary byte - The technical term for 8 bits of data.
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
To do … Web Exercise: Quiz-3, HW#2 Score: update
Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally
Chapter 2 Data Representation.
Art Programs Raise Deep Questions
Announcements SGID Feedback! Thank you!! Readings:
Digitizing Color RGB Colors: Binary Representation
Presentation transcript:

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

 Recall that the screen (and other video displays) use red-green-blue lights, arranged in an array of picture elements, or pixels 9/17/2015© Larry Snyder, CSE2 Coffee Cup Pixels

9/17/2015© Larry Snyder, CSE3

 The Amazing Properties of Colored Light!  Caution: It doesn’t work like pigment 9/17/2015© Larry Snyder, CSE4

 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 9/17/2015© Larry Snyder, CSE5

9/17/2015© Larry Snyder, CSE6

 Analogue information directly applies physical phenomena, e.g. vinyl records 9/17/2015© Larry Snyder, CSE7

Sampling the wave … 9/17/2015© Larry Snyder, CSE8

9/17/2015© Larry Snyder, CSE9

Analog is needed for the “real world” Digital is best for “information world”  Can be modified, enhanced, remixed, etc  Shared, stored permanently, reproduced, … 9/17/2015© Larry Snyder, CSE10 Device Driver Memory A/D Converter Device Driver Memory D/A Converter

 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 9/17/2015© Larry Snyder, CSE11

 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! 9/17/2015© Larry Snyder, CSE12

 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 9/17/2015© Larry Snyder, CSE13 Susanne Vega sings Tom’s Diner

 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 0 s and 1 s.  Compress by counting … it’s run-length encoding: == 22:0,7:1,8:0,2:1 9/17/2015© Larry Snyder, CSE14

 Graphics Interchange Format (GIF) uses several kinds of compression  Color Table  Run Length Encoding  Lemple/Ziv/Welch Encoding 9/17/2015© Larry Snyder, CSE15

 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 ▪ 9/17/2015© Larry Snyder, CSE16

 Areas of similar color are represented by one shade … it’s OK for a while 9/17/2015© Larry Snyder, CSE17

 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 9/17/2015© Larry Snyder, CSE18

 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 9/17/2015© Larry Snyder, CSE19

 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: , …  ASCII groups 8 bits in sequence  They seem to be assigned intelligently, but they’re just patterns 9/17/2015© Larry Snyder, CSE20

 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 , dark red , etc. 9/17/2015© Larry Snyder, CSE21

 What does this represent: ?  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 ñ  IP Address:  Hexadecimal number: 00 F  …  to infinity and beyond 9/17/2015© Larry Snyder, CSE22

 This is the principle:  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” 9/17/2015© Larry Snyder, CSE23 Bias-free Universal Medium Principle: Bits can represent all discrete information; bits have no inherent meaning

 Goal  Part 1: HW 11, due Tuesday  Part 2: Lab 7, do it in lab 9/17/2015© Larry Snyder, CSE24 Just Do It!