3.3 Fundamentals of data representation

Slides:



Advertisements
Similar presentations
Rectangle Image Compression Jiří Komzák Department of Computer Science and Engineering, Czech Technical University (CTU)
Advertisements

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.
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.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
1 Bitmap Graphics It is represented by a dot pattern in which each dot is called a pixel. Each pixel can be in any one of the colors available and the.
Data Compression For Images. Data compression or source coding is the process of encoding information using fewer bits (or other information-bearing units)
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
CMSC 100 Storing Data: Huffman Codes and Image Representation Professor Marie desJardins Tuesday, September 18, 2012 Tue 9/18/12 1CMSC Data Compression.
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:
Bits and Huffman Encoding Please get a piece of paper and a pen and put your name and netid on it. Make sure you can turn in it after class without losing.
Module 4- Build a Game Look at Me Mod 4 Lesson 3 Graphics.
A New Operating Tool for Coding in Lossless Image Compression Radu Rădescu University POLITEHNICA of Bucharest, Faculty of Electronics, Telecommunications.
CSCI-100 Introduction to Computing Hardware Part II.
Chapter 3 Data Representation. 2 Compressing Files.
Page 1KUT Graduate Course Data Compression Jun-Ki Min.
Computer Sciences Department1. 2 Data Compression and techniques.
Module 4- Build a Game Look at Me Mod 4 Lesson 3 Graphics.
© 2016 AQA. Created by Teachit for AQA Character encoding and Representing images Lesson.
Computer Systems Nat 5 Computing Science Data Representation
AP CSP: Pixelation – B&W/Color Images
3.3 Fundamentals of data representation
3.3 Fundamentals of data representation
Image and Sound Representation
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
GCSE COMPUTER SCIENCE Data 2.2 Characters and Images.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Data Storage and Compression.
3.3 Fundamentals of data representation
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
File Compression 3.3.
Vocabulary byte - The technical term for 8 bits of data.
3.1 Fundamentals of algorithms
Digital imaging.
CPSC 231 Organizing Files for Performance (D.H.)
UNIT 2 – LESSON 3 Encoding B&W Images.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Vocabulary byte - The technical term for 8 bits of data.
Computer Science Higher
Lecture 7 Data Compression
Lesson Objectives Aims You should know about: 1.3.1:
DCT IMAGE COMPRESSION.
File Compression 3.3.
JPEG Image Coding Standard
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Net 323 D: Networks Protocols
CS Principles U2L3 Encoding B&W Images.
Vocabulary byte - The technical term for 8 bits of data.
Look at Me Mod 4 Lesson 3 Graphics Module 4- Build a Game.
Data Representation.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Representing Images 2.6 – Data Representation.
Advanced Algorithms Analysis and Design
Image Processing, Leture #16
Net 323 D: Networks Protocols
UNIT IV.
Image Compression Purposes Requirements Types
Image Coding and Compression
Do Now! Convert the following sequence of bits into an image using the protocol we discussed (first 8 bits are lengthxwidth, Then fill in the rows pixel.
Number Systems Instructions, Compression & Truth Tables.
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.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Computer Networks Lesson 5.
Chapter 8 – Compression Aims: Outline the objectives of compression.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.9 Data Compression.
Quantizing Compression
Huffman Coding Greedy Algorithm
WJEC GCSE Computer Science
Quantizing Compression
Presentation transcript:

3.3 Fundamentals of data representation 3.3.8 Data compression (Introduction and Run Length Encoding (RLE)) Lesson

Starter Complete Quiz 1 Quiz 1 is available in the accompanying ‘Lesson plan and printable activities’ Word document.

Know why it is useful to be able to reduce the size of digital files. Objectives Know approximate values for the sizes of some commonly found electronic file formats. Know why it is useful to be able to reduce the size of digital files.

Objectives Name two data compression techniques. Explain how data can be compressed using Run Length Encoding (RLE). Use Run Length Encoding (RLE) to transform bitmapped images into compressed files.

To save on storage space. Introduction Why compress data at all? Give two good reasons for needing to compress data file sizes. To be able to transfer data files more rapidly. To save on storage space.

What is data compression? Key definition What is data compression? The process of reducing the quantity of bits required in order to represent a piece of information. The process of compression may be reversible or irreversible depending on the technique used.

Common data compression techniques There are a number of available techniques for data compression. Technique: Quick description: Run Length Encoding (RLE) A relatively simple technique that swaps a continuous sequence of characters for a recognisable code. Huffman coding A more complex method using a graphical tree representation of commonly occurring characters. Dictionary methods A method of compressing files containing recognisable sequences of text by converting them to known ‘tokens’. Make sure students are aware that they only need to know RLE and Huffman coding.

TIME UP What is Run Length Encoding (RLE)? Start You have five minutes to come up with a definition that you can explain to the rest of the class without having to read it out. Include in your definition: one advantage of this method one disadvantage of this method. TIME UP Start RLE is suitable for compressing both bitmap image and text files containing a large frequency of similar content. This timer bar takes five minutes and will turn purple when the time is up. Students should use the internet for this task. This method relies on the use of frequently occurring patterns of identical bit patterns in files – the core concept is that of referring to frequency/data pairs which are identified and encoded – this leads to a way of compressing the size of a file by reducing repetition in a file containing it. Advantages and disadvantages (Source: prepressure.com/library/compression-algorithm/rle This algorithm is very easy to implement and does not require much CPU horsepower. RLE compression is only efficient with files that contain lots of repetitive data. These can be text files if they contain lots of spaces for indenting but line-art images that contain large white or black areas are far more suitable. Computer-generated color images (e.g. architectural drawings) can also give fair compression ratios.

RLE – Worked example This is a bitmapped image. Each black cell is ‘off’ and has a value of 0. Each white cell is ‘on’ and has a value of 1. Row 1 can be represented by: 0 0 0 0 1 0 0 0 Using RLE this becomes: 4 0 1 1 3 0 How has this been worked out?

To round things off… Complete Quiz 2 After you finish, try making your own design on squared paper and writing the RLE for it. Quiz 2 is available in the accompanying ‘Lesson plan and printable activities’ Word document.