CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp. 46-57.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

© 2004, Robert K. Moniot Binary and Hex How to count like a computer.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
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.
Introduction to Multimedia Student Multimedia Design Center 06/06/06.
Binary Representation
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
CSC Computing with Images1 Image encodings CSC 1040.
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
©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 2, Exploring the Digital Domain
Working with text ASCII and UNICODE.   
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
CMYK vs. RGB Design. Primary colors The colors that make up the base for every other color created. Depending on whether you are looking at it from science,
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Representing Nonnumeric Data Everything is really a number.
07: Color in Interactive Digital Media
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
CS 101 – Sept. 16 Finish color representation –RGB √ –CMY –HSB –Indexed color Chapter 4 – how computers think –Begin with basic building blocks.
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.
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.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Number Representations What all the numbers can mean.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
CSC Computing with Images
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
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.
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
# Red Green Blue Digital Color RGB to HEX.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
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.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
HEXADECIMAL NUMBERS.
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.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Chapter 3: Data Representation Chapter 3 Data Representation Page 17 Computers use bits to represent all types of data, including text, numerical values,
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
CS 101 – Sept. 11 Review linear vs. non-linear representations. Text representation Compression techniques Image representation –grayscale –File size issues.
1.4 Representation of data in computer systems Character.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Chapter 8 & 11: Representing Information Digitally
Image Processing Objectives To understand pixel based image processing
Sampling, Quantization, Color Models & Indexed Color
DIP 9 65 Original 210 Eye Zoomed.
Data Encoding Characters.
Representing Nonnumeric Data
CS 115: Computing for The Socio-Techno Web
Ch2: Data Representation
Presenting information as bit patterns
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Basic Concepts of Digital Imaging
Visuals are analog signals...
Presentation transcript:

CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp –Quiz next Friday

Numbers in a byte A byte is 8 bits So, how big can an 8-bit binary number be? Hexidecimal shorthand –8/4 = 2 hexidecimal digits per byte –What do the letters ‘a’ – ‘f’ mean? a = 10, b = 11, c = 12, d = 13, e = 14, f = 15 –Example: = 5e in hex. –Try this one: = ______ in hex. –Try this one: a4c in hex = ________ in binary.

Text Fundamental unit is the character. Each character of a text document is given a numerical code. ASCII code –Contiguous (make it easy to alphabetize) –Case sensitive –One byte per character ASCII table (p. 597) –‘A’ = 65‘a’ = 97‘0’ = 48 –Try encoding the word: “Dog”

Unicode To support foreign alphabet and misc. symbols. Extension of ASCII 16 bits per character, rather than 8 unicode.org has code charts Codes are given in hex.

Sampling “Real” sound and visual data are continuous, constantly changing Sampling means to take rapid snapshots Video: 30 images a second is good enough for our eyes Real sound is in the form of a wave (p. 43) Sampling sound means finding points along the curve. –Music CD: take a reading 44,100 times a second, and store as a 16-bit number… How much data is captured in 1 hour? –MIDI (= Musical Instrument Digital Interface) uses far less space, though does not sound like an actual recording.

Images Fundamental unit is the pixel Usually 8 bits (1 byte) per pixel –This means each pixel is assigned a value from 0 to 255 –What do these numbers mean? Depends on color system –Grayscale = system for B/W images Image dimensions are (horiz x vert) –Ex. 400 x 300  120,000 pixels Aspect ratio –When changing size, this should not change.

Resolution Resolution – total number of pixels in image –“hi res” takes up more space –“lo res” means pixels become more obvious, pixelated

Dynamic range Dynamic range – how many colors / how many shades of gray –High dynamic range: more bits per pixel –Low dynamic range: may obscure features

B/W vs. color B/W: usually 1 byte per pixel –Each pixel = grayscale number –Ex. 180 is a brighter shade of gray Color: usually 3 bytes (24 bits) per pixel –Each pixel has 3 values, each –Ex. (200, 50, 128) = ? –Most common scheme is RGB, where each pixel has a red #, green #, and blue #.

RGB system Based on primary colors for light (red, green, blue) Examples –Black = (0, 0, 0) –Purple = (75, 0, 100) –White = (255, 255, 255) How about (x, x, x) or (0, 0, x) ?

RGB examples ColorRGB Black000 White255 Red25500 Green02550 Blue00255 Cyan0255 Magenta2550 Yellow255 0

Indexed color Do we really need 24 bits to represent color of one pixel? –This means we allocate 16,777,216 colors! –About 200 would be more practical Indexed color is a “compressed” RGB –6 values of each primary color, not 256 –Use hex values 00, 33, 66, 99, cc, ff –This is the color system used on the Web. 1 byte per pixel instead of 3 Use “dithering” to simulate in-between colors.