CS 111 – Sept. 10 Quiz Data compression –text –images –sounds Commitment: –Please read rest of chapter 1. –Department picnic next Wednesday.

Slides:



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

Data Compression CS 147 Minh Nguyen.
Image Compression. Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of.
Lecture # 20 Image and Data Compression. Data Compression.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Compression & Huffman Codes
CPSC 231 Organizing Files for Performance (D.H.) 1 LEARNING OBJECTIVES Data compression. Reclaiming space in files. Compaction. Searching. Sorting, Keysorting.
CSCI 3 Chapter 1.8 Data Compression. Chapter 1.8 Data Compression  For the purpose of storing or transferring data, it is often helpful to reduce the.
Compression JPG compression, Source: Original 10:1 Compression 45:1 Compression.
A Data Compression Algorithm: Huffman Compression
Computer Science 335 Data Compression.
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
©Brooks/Cole, 2003 Chapter 15 Data Compression. ©Brooks/Cole, 2003 Realize the need for data compression. Differentiate between lossless and lossy compression.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Dale & Lewis Chapter 3 Data Representation
CS105 INTRODUCTION TO COMPUTER CONCEPTS DATA REPRESENTATION Instructor: Cuong (Charlie) Pham.
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
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.
Cosc 2150: Computer Organization Chapter 2a Data compression.
Chapter 2 Source Coding (part 2)
CPS120 Introduction to Computer Science Lecture 4
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
MA/CSSE 473 Day 31 Student questions Data Compression Minimal Spanning Tree Intro.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Lecture Objectives  To learn how to use a Huffman tree to encode characters using fewer bytes than ASCII or Unicode, resulting in smaller files and reduced.
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Chapter 1: Data Storage.
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
Still-image compression Moving-image compression and File types.
JPEG CIS 658 Fall 2005.
CMSC 100 Storing Data: Huffman Codes and Image Representation Professor Marie desJardins Tuesday, September 18, 2012 Tue 9/18/12 1CMSC Data Compression.
1 Classification of Compression Methods. 2 Data Compression  A means of reducing the size of blocks of data by removing  Unused material: e.g.) silence.
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
COMPRESSION. Compression in General: Why Compress? So Many Bits, So Little Time (Space) CD audio rate: 2 * 2 * 8 * = 1,411,200 bps CD audio storage:
Quiz # 1 Chapters 1,2, & 3.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Multimedia Basics (1) Hongli Luo CEIT, IPFW. Topics r Image data type r Color Model : m RGB, CMY, CMYK, YUV, YIQ, YCbCr r Analog Video – NTSC, PAL r Digital.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Compression  Data files compression  Music compression  Image and video compression.
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2011.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Multi-media Data compression
Compression techniques Adaptive and non-adaptive.
CS 101 – Sept. 11 Review linear vs. non-linear representations. Text representation Compression techniques Image representation –grayscale –File size issues.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
Data Compression: Huffman Coding in Weiss (p.389)
Chapter 1: Data Storage.
Computer Science: An Overview Eleventh Edition
Textbook does not really deal with compression.
Vocabulary byte - The technical term for 8 bits of data.
Design & Analysis of Algorithm Huffman Coding
Compression & Huffman Codes
Data Compression.
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Lesson Objectives Aims You should know about: 1.3.1:
JPEG.
Data Compression.
Chapter 7.2: Layer 5: Compression
Data Compression CS 147 Minh Nguyen.
File Compression Even though disks have gotten bigger, we are still running short on disk space A common technique is to compress files so that they take.
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

CS 111 – Sept. 10 Quiz Data compression –text –images –sounds Commitment: –Please read rest of chapter 1. –Department picnic next Wednesday

Text compression Goal is for a document to take up less space Techniques –Keyword encoding: replace common words by special symbols like   ╞ –Run-length encoding: replace repetitions with a number: “pppppppppppppp”  [14p] –Huffman code: common letters should take up fewer bits

Huffman code example Suppose you want to send a message, and you know the only letters you need are A, D, E, L, N, P, S. A Huffman code might look like this table: How would you decode this message? ADELNPS

How to create code We’re given the set of letters used for the message, and their frequencies. –Ex. A = 5, B = 10, C = 20, D = 25, E = 30 –Ex. P = 5, N = 10, D = 10, L = 15, A = 20, S = 20, E = 30 It’s convenient to arrange the frequencies in order. Group the letters in pairs, always looking for the smallest sum of frequencies. The resulting structure is a “tree”. Each left arm = “0” in the code; each right arm is a “1”.

Dictionary & LZW Dictionary encoding: –Convert each word to a number –Represent this number in binary –If 50,000 words in dictionary, we can represent each with 16 bits (2 bytes) since 2 16 > 50,000 –A lot shorter than the average word LZW –Begin by encoding letters as 1-26, space as 27. –Each time you form a new word, add it to the “dictionary” as 28, 29, 30, etc. –So, we don’t need to encode every word in English language. –Ex. AB ABC AB ABC would be 1,2,27,1,2,3,28,29

Image compression RGB 24-bit color represented as (huge) bitmap file *.bmp Most of the time, compressing an image is “lossy”, meaning that uncompressing won’t restore original.bmp information GIF compression uses indexed color JPG entails several steps –Make tiny modifications to the image, so that neighboring pixels will have more uniform values. For example, (10, 11, 12, 90)  (11, 11, 11, 90) –Use text/numerical compression techniques like run-length encoding.

MPEG Motion Picture Experts Group Industry standard for compressing multimedia Note that much information in consecutive frames is the same Delete sound information that humans can’t detect Goal: to make streaming video possible: 30 frames per second at a minimal DSL connection –Ex. 5-minute 300x200 video ~ 12 MB