Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.

Slides:



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

RMAUG Professional Development Series 2/11/09 Dwight Reifsnyder.
Michael Alves, Patrick Dugan, Robert Daniels, Carlos Vicuna
Compression & Huffman Codes
School of Computing Science Simon Fraser University
Introduction to Data Compression
Compression Techniques. Digital Compression Concepts ● Compression techniques are used to replace a file with another that is smaller ● Decompression.
SWE 423: Multimedia Systems
SWE 423: Multimedia Systems Chapter 7: Data Compression (1)
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.
A Data Compression Algorithm: Huffman Compression
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
Data Compression Basics & Huffman Coding
September,2012 File Compression 8/6/ Compiled By:- Solomon W. Demissie.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Management Information Systems Lection 06 Archiving information CLARK UNIVERSITY College of Professional and Continuing Education (COPACE)
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
Lecture 10 Data Compression.
Data Compression For Images. Data compression or source coding is the process of encoding information using fewer bits (or other information-bearing units)
Chapter 2 Source Coding (part 2)
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
MULTIMEDIA TECHNOLOGY SMM 3001 DATA COMPRESSION. In this chapter The basic principles for compressing data The basic principles for compressing data Data.
: Chapter 12: Image Compression 1 Montri Karnjanadecha ac.th/~montri Image Processing.
1 Analysis of Algorithms Chapter - 08 Data Compression.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
Image Compression (Chapter 8) CSC 446 Lecturer: Nada ALZaben.
Multimedia Data Introduction to Lossless Data Compression Dr Sandra I. Woolley Electronic, Electrical.
Compression.  Compression ratio: how much is the size reduced?  Symmetric/asymmetric: time difference to compress, decompress?  Lossless; lossy: any.
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.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Digital Image Processing Image Compression
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
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:
Msccomputerscience.com. Compression is a key aspect of multimedia It is a technique used in almost all multimedia application Compression is done on source.
An introduction to audio/video compression Dr. Malcolm Wilson.
Chapter 17 Image Compression 17.1 Introduction Redundant and irrelevant information  “Your wife, Helen, will meet you at Logan Airport in Boston.
Huffman Code and Data Decomposition Pranav Shah CS157B.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 6 – Basics of Compression (Part 1) Klara Nahrstedt Spring 2011.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Comp 335 File Structures Data Compression. Why Study Data Compression? Conserves storage space Files can be transmitted faster because there are less.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Sound (analogue signal). time Sound (analogue signal) time.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Multi-media Data compression
Page 1KUT Graduate Course Data Compression Jun-Ki Min.
An introduction to audio/video compression Prepared by :: Bhatt shivani ( )
Computer Sciences Department1. 2 Data Compression and techniques.
1 SWE 423 – Multimedia System. 2 SWE Multimedia System Introduction  Compression is the process of coding that will effectively reduce the total.
Fundamentals of Data Representation Yusung Kim
Data Compression: Huffman Coding in Weiss (p.389)
File Compression 3.3.
Compression & Huffman Codes
IMAGE COMPRESSION.
Computer Science Higher
Data Compression.
Compression, Lossy, Lossless
UNIT IV.
CSE 589 Applied Algorithms Spring 1999
Number Systems Instructions, Compression & Truth Tables.
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam

 Introduction

 Data compression involves encoding information using fewer bits than the original representation would use.  Compression is useful to reduce the consumption of hard disk space or transmission bandwidth.  On the downside, compressed data must be decompressed to be used, and it may be detrimental to some applications.

 For instance, a compression of video may require expensive hardware for the video to be decompressed fast enough to be viewed as it is being decompressed  The option of decompressing the video in full before watching it may be inconvenient, and requires storage space for the decompressed video

 The data compression schemes involves the degree of compression, the amount of distortion, and the computational resources required to compress and uncompress the data  Compression was one of the main drivers for the growth of information during the past two decades.  There are two compression concept, lossy and lossless compression

 Lossless data compression is a class of data compression algorithms that allows the exact original data to be reconstructed from the compressed data.  The term lossless is in contrast to lossy data compression, which only allows an approximation of the original data to be reconstructed, in exchange for better compression rates.

 Lossless data compression is used in many applications, such as ZIP and gzip  It is also used as a component within lossy data compression technologies

 Lossless compression is used if it is important that the original and the decompressed data be identical  Some image file formats, like PNG or GIF, use only lossless compression, while others like TIFF and MNG may use either lossless or lossy methods  Lossless audio formats are most often used for archiving or production purposes

 Most lossless compression programs do two things in sequence, first generate a statistical model for the input data, and second use this model to map input data to bit sequences in such a way that frequently encountered data will produce shorter output than "improbable" data.  The algorithms used to produce bit sequences are Huffman coding and arithmetic coding

 Arithmetic coding achieves compression rates close to the best possible for a particular statistical mode  Huffman compression is simpler and faster but produces poor results for models that deal with symbol probabilities close to 1

 There are two primary ways of constructing statistical models: static model and adaptive model  In a static model, the data is analyzed and a model is constructed, then this model is stored with the compressed data

 This approach is simple and modular, but has the disadvantage that the model itself can be expensive to store, and also that it forces a single model to be used for all data being compressed, and so performs poorly on files containing heterogeneous data

 Adaptive models dynamically update the model as the data is compressed. Both the encoder and decoder begin with a trivial model, yielding poor compression of initial data, but as they learn more about the data, performance improves.  Most popular types of compression used in practice now use adaptive coders.

 Lossy compression is a data encoding method that compresses data by discarding (losing) some of it  The procedure aims to minimize the amount of data that need to be held, handled, and/or transmitted by a computer.  Typically, a substantial amount of data can be discarded before the result is sufficiently degraded to be noticed by the user.

 Lossy compression is most commonly used to compress multimedia data (audio, video, and still images), especially in applications such as streaming media and internet telephony  By contrast, lossless compression is required for text and data files, such as bank records and text articles

 Run-length encoding (RLE) is a very simple form of 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, rather than as the original run  This is most useful on data that contains many such runs, example simple graphic images such as icons, line drawings, and animations  It is not useful with files that don't have many runs as it could greatly increase the file size.

 For example, a screen with black text on a solid white background. There are black pixel for text and white pixel  B for black pixel and W for white WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWW WWWWWWWWWWWWWWWWWWWWBWWWWWWWWWW WWWW  The RLE converts to 12W1B12W3B24W1B14W  The run-length code represents the original 67 characters in only 18.

 Run-length encoding is lossless data compression and is well suited to palette- based iconic images  It does not work well at all on continuous- tone images such as photographs

 Original text: ADA ATE APPLE  There are 7 symbols, A, D, E, L, P, T and space with frequency: 4 As, 2 Ps, 2 Es, 2 spaces, 1 D, 1 T and 1 L  The symbols are presented by 3 bits: A:000 D:001 E:010 L:011 P:100 T:101 Space:110  Encoded text needs 39 bits (compared to original text 104 bits)

 Original text: ADA ATE APPLE  There are 7 symbols, A, D, E, L, P, T and space with frequency: 4 As, 2 Ps, 2 Es, 2 spaces, 1 D, 1 T and 1 L  The symbols are presented depending on frequency A:0 P:10 E:110 Space:1110 D:11110 T: L:111111

 The Preffix Property  Encoded text needs bits (39 bits)  In general variable length encoding is better the fix length encoding  Deencoding is done with tree structure

 Variable length coding  Tree structure is built bottom up  Level paling bawah terdiri dari simbol dengan kemunculan paling sedikit