More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
The Binary Numbering Systems
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
Chapter 5 Light, Sound, Magic: Representing Multimedia Digitally Digitizing is more than letters, numbers, and metadata It is also photos, audio, and video.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Data Representation Computer Organization &
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Data Representation COE 205
Connecting with Computer Science, 2e
Introduction to Multimedia Student Multimedia Design Center 06/06/06.
Chapter 11 Light, Sound, Magic: Representing Multimedia Digitally.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
CSC 110 – Intro to Computing Lecture 4: Arithmetic in other bases & Encoding Data.
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.
Management Information Systems Lection 06 Archiving information CLARK UNIVERSITY College of Professional and Continuing Education (COPACE)
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Digital Colour Theory. What is colour theory? It is the theory behind colour mixing and colour combination.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Chapter 11 Light, Sound, Magic: Representing Multimedia Digitally.
Computers Organization & Assembly Language
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Representing Information Digitally. Digitization Initially transforming data for computer use Assigning people social security numbers The creation of.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
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.
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Number Systems CIT Network Math
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Chapter 2 : Business Information Business Data Communications, 6e.
CSC Computing with Images
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
AEEE2031 Data Representation and Numbering Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
 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.
Announcements Chapter 8 for today. 2 More Digitization Light, Sound, Magic: Representing Multimedia Digitally © Lawrence Snyder, 2008.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
Binary  Decimal. Review Each binary digit (bit) is a power of 2 Place the bits, multiply, and add Example:
Representing Sound and Image. Representing images One mean of representing an image it to interpret the image as a collection of dots, each is called.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Topic: Binary Encoding – Part 2
Invitation to Computer Science, C++ Version, Fourth Edition
Chapter 8 & 11: Representing Information Digitally
Image Processing Objectives To understand pixel based image processing
Lec 3: Data Representation
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
The Binary Number System
Invitation to Computer Science, Java Version, Third Edition
To do … Web Exercise: Quiz-3, HW#2 Score: update
Ch2: Data Representation
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
Chapter 2 Data Representation.
Art Programs Raise Deep Questions
The Binary System.
Digital Image Processing
Visuals are analog signals...
Presentation transcript:

More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete

Return To RGB Images are constructed from picture elements (pixels); color uses RGB light The RGB color intensities are specified by 3 numbers in the range [0, 255], ie 1 byte each Black = [ 0, 0, 0] Gray = [128,128,128] White = [255,255,255] White-gray-black all have same values for RGB

Colors Colors use different combinations of RGB Husky Purple Red=160 Green=76 Blue=230

Positional Notation The RGB intensities are binary numbers Binary numbers, like decimal numbers, use place notation 1101 = 1x x x10 + 1x1 = 1x x x x10 0 except that the base is 2 not = 1x8 + 1x4 + 0x2 + 1x1 = 1x x x x in binary is 13 in decimal Base or radix

Binary Numbers Given a binary number, add up the powers of 2 corresponding to 1s x2 0 = 0x1= 0 0x2 1 = 0x2= 0 0x2 2 = 0x4= 0 0x2 3 = 0x8= 0 0x2 4 = 0x16= 0 1x2 5 = 1x32= 32 0x2 6 = 0x64= 0 1x2 7 = 1x128= 128 = 160

Binary Numbers Given a binary number, add up the powers of 2 corresponding to 1s x2 0 = 0 0x2 1 = 0 1x2 2 = 4 1x2 3 = 8 0x2 4 = 0 0x2 5 = 0 1x2 6 = 64 0x2 7 = 0 = 76

Binary Numbers Given a binary number, add up the powers of 2 corresponding to 1s x2 0 = 0 1x2 1 = 2 1x2 2 = 4 0x2 3 = 0 0x2 4 = 0 1x2 5 = 32 1x2 6 = 64 1x2 7 = 128 = 230

Husky Purple Recall that Husky purple is (160,76,230) which in binary is Suppose you decide it’s not “red” enough Increase the red by 16 = Adding in binary is pretty much like adding in decimal

A Redder Purple Increase by 16 more Carries The rule: When the “place sum” equals 2 or more, subtract 2 & carry

Find Binary From Decimal The conversion algorithm Start: x is the number to convert 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least as large as 2 d ? 3t. Yes, the binary place is 1; x=x-2 d 3f. No, the binary place is 0 4. d = d - 1, go to Step 2

Find Binary From Decimal Start: x is the number to convert 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes yes yes no no yes yes no

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 141

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes 1

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no no no

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no no no yes 1 2 5

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no no no yes yes 1 1 1

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no no no yes yes no yes 1

Another Example Convert x = 141 to binary … 1. Let d the largest numbers so 2 d  x 2. Is d  0, i.e. more digits to process? No, end 3. Is x  2 d, i.e. is x at least large a 2 d ? 3t. Y, binary place=1;x=x-2 d 3f. N, binary place=0 4. d = d - 1, go to Step 2 Place x 2 d x  2 d bit 7=d yes no no no yes yes no yes

Digitizing “Continuous” information like light and sound must be made “discrete” MicMic Digital to Analog Analog to Digital SpkSpk Digital audio uses 44,100 samples per second of 16 bits on two channels, or 10,584,000 B/min

Information Processing Manipulating pixels is an example of “computing on a representation” Photoshop & other graphics SW manipulate pictures by computing on representation Audio is edited similarly to remove coughs and other odd sounds, speed up, etc. Searching the dictionary is another example Information processing depends on computing on representations

Bits Are It Bits represent information, but their interpretation gives bits meaning Could be a number, color, instruction, ASCII, sound samples, IP address, … Bias-free Universal Medium Principle: Bits can represent all discrete information; bits have no inherent meaning

Summary Bits can represent any information  Discrete information is directly encoded using binary  Continuous information is made discrete  “Computing on representations” is the key to “information processing”  Bias-free Universal Medium Principle