Fundamentals of Data Representation 2016.2.15 Yusung Kim

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Information Representation
The Binary Numbering Systems
Chapter 2 Digital data Ola A. Younis. Elements of digital media Symbols : representation for something else. Example: a group of letters often serve as.
School of Computing Science Simon Fraser University
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Connecting with Computer Science, 2e
1 Data Compression Engineering Math Physics (EMP) Steve Lyon Electrical Engineering.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Fundamentals Rawesak Tanawongsuwan
©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,
Lecture 10 Data Compression.
CPS120 Introduction to Computer Science Lecture 4
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
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.
Chapter 3 Representation. Key Concepts Digital vs Analog How many bits? Some standard representations Compression Methods 3-2.
3-1 Data and Computers Computers are multimedia devices, dealing with a vast array of information categories. Computers store, present, and help us modify.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 : Business Information Business Data Communications, 6e.
Digital Image Processing Image Compression
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Quiz # 1 Chapters 1,2, & 3.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Representation, Number Systems and Base Conversions
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
The Nature of Data and Information 11 IPT Miss O’Grady.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
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.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Data Representation Chapter 3 Data Representation Page 17 Computers use bits to represent all types of data, including text, numerical values,
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Computer Science: An Overview Eleventh Edition
Invitation to Computer Science, C++ Version, Fourth Edition
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.
Computer Science Higher
Data Compression.
Introduction to Computers
Data Compression.
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Data Compression CS 147 Minh Nguyen.
Multimedia networking: outline
Ch2: Data Representation
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
Computer Systems – Unit 1
Chapter 2 Data Representation.
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Image Coding and Compression
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Multimedia networking: outline
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Fundamentals of Data Representation Yusung Kim

Data, Information and Knowledge Data : often in the form of facts or figures obtained from experiments or surveys. Information : data that are processed to be useful about a particular subject Knowledge : the appropriate collection of information to be useful. Knowledge is a deterministic process. situationdatainformationknowledge measurementunderstanding relations understanding patterns

Analog and Digital Analog – a kind of signal that is continuously variable such as sound and voltage. Digital – a representation of a sequence of discrete values which can only take on one of a finite number of values.

Digital Computing A computer handles information represented by discrete values. It is essential that computer hardware be reliable and error free. If the hardware gives incorrect results, then any program run on that hardware may give incorrect results as well. The key to develop reliable systems is to keep the design as simple as possible.

Decimal Digitalization Suppose that the computer represented numbers as we are used to, in base ten. Each digit is represented by a different voltage level. The more voltage levels the hardware requires, the more complex the hardware becomes. voltage levels

Information Theory The Fundamental Theorem of Information Science of Claude Shannon states that all information can be represented by the use of only two symbols, 0 and 1. This is referred to as binary representation. Shannon is known as the “Father of Information Theory.”

Binary Digitalization Each digit can be one of only two possible values, similar to a light switch that can be either on or off. Computer hardware is based on the use of simple electronic on/off switches called transistors. voltage levels low high

The Binary Number System For representing numbers, any base (radix) can be used. For example, in base 10, there are ten possible digits (0, 1,..., 9), in which each column value is a power of ten: 10,000,000 1,000, ,000 10,000 1, = 99

For representing numbers in base 2, there are two possible digits (0, 1) in which each column value is a power of two: = 99 Although values represented in base 2 are significantly longer than those in base 10, binary representation is used in digital computing because of the simplicity of hardware design.

Bits and Bytes Each binary digit is referred to as a bit. A group of (usually) eight bits is called a byte. Converting a base ten number to base two involves the successive division of the number by 2. 49/2 = 24 with remainder 1 24/2 = 12 with remainder 0 12/2 = 6 with remainder 0 6/2 = 3 with remainder 0 3/2 = 1 with remainder 1 1/2 = 0 with remainder

Negative Numbers In mathematics, negative numbers in any base are represented by prefixing them with a minus ("−") sign. However, in computers, numbers are represented only as sequences of bits, without extra symbols = = ?

Two’s complement representation The leftmost bit serves as a sign bit; 0 for positive numbers, 1 for negative numbers To compute negative values; 1.complement the entire positive number Flip each bit if it is 0, make it 1, and visa versa 2.and then add one (complemented) (add one) = ? (+7) (-7) (+0)

(+8) (-7) (+1) Two’s complement representation For example, to add +8 and -7, we simply add the corresponding binary codes; A carry from the leftmost column has been ignored. The result, , is the code for +1, the sum of +8 and -7.

Text ASCII ( American Standard Code for Information Interchange ) – A character-encoding scheme to represent text in computers – ASCII encodes 128 specified characters into seven-bit integers Including numbers 0 to 9, lowercase letters a to z, uppercase letters A to Z, basic punctuation symbols, and a space. Unicode – A computing industry standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems.

Text ASCII code table – ‘A’ would become 65 – ‘a’ would become 97 – ‘0’ ~ ’9’ would become 48 ~ 57 in base 10 numbers

Character String String – A series of characters manipulated as a group ‘H’‘e’‘l’ ‘o’‘ ‘W’‘o’‘r’‘l’‘d’‘\0’ “Hello World” ASCII

Sound Analog audio signal sampled at constant rate – telephone: 8,000 samples/sec – CD music: 44,100 samples/sec Each sample quantized (rounded) – e.g., 2 8 =256 possible quantized values – each quantized value represented by bits e.g., 8 bits for 256 values time audio signal amplitude analog signal quantized value of analog value quantization error sampling rate (N sample/sec)

Image An image is an artifact that depicts or records visual perception, for example a two-dimensional picture A bitmap image is a digital image composed of a matrix of dots (or pixels). – Each pixel has its own color. – The number of pixels in an image is called resolution. A vector image is made up of many individual objects. – These objects (lines and curves) are defined by mathematical equations rather than pixels, so they always render at the highest quality. – Resolution independent

Bitmap Image 1bit black and white 8 bit gray-scale 24 bit Red-Green-Blue (RGB) RedGreenBlue

Image Compression Reducing irrelevance and redundancy of the image data in order to store or transmit data in an efficient form. Lossless compression – Allows the original data to be perfectly reconstructed from the compressed data – Applications: text articles, bank records, medical images.. – Run-length encoding (RLE) is a very simple form of lossless data compression in which runs of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count. e.g. RRRRRRRRRRGGGGGGGGGGGGBBBBBBBBBBBBBBBB R10G12B16

Image Compression Lossy compression – Uses inexact approximations (or partial data discarding) to represent images. – May reduce file sizes significantly before degradation is noticed by the end-user. – Even when noticeable by the user, further data reduction may be desirable (e.g. for real-time communication, to reduce transmission times, or to reduce storage needs). – Applications: multimedia data (audio, video, and images), especially streaming media and internet telephony.

JPEG (Joint Photographic Experts Group) A commonly used method of lossy compression for digital images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. Algorithms 1.Color space transformation: from RGB to YCbCr 2.Block splitting: cut up the image in separate blocks of 8 x 8 pixels 3.For each block, a Discrete Cosine Transform (DCT) transformation is applied. 4.Quantization: values in blocks are changed to integers (rounded). 5.Lossless compression

Video Video: sequence of images displayed at constant rate e.g. 24 images/sec Coding: use redundancy within and between images to decrease # bits used to encode image ……………………...… spatial coding example: instead of sending N values of same color (all purple), send only two values: color value (purple) and number of repeated values (N) ……………………...… frame i frame i+1 temporal coding example: instead of sending complete frame at i+1, send only differences from frame i