Ch. 2: Compression Basics Multimedia Systems

Size: px
Start display at page:

Download "Ch. 2: Compression Basics Multimedia Systems"

Transcription

1 Ch. 2: Compression Basics Multimedia Systems Prof. Ben Lee School of Electrical Engineering and Computer Science Oregon State University Outline Why compression? Classification Entropy and Information Theory Lossless compression techniques Run Length Encoding Variable Length Coding Dictionary-Based Coding Lossy encoding Chapter 2: Compression Basics 2

2 Why Compression? Uncompressed MB,, Compressed 37G, 342M.G 62M 8M 4.5M 53M M 4.9M 46M 468K.6M 6:... 4K 2K 2: 32K 5: 79K 2: 4: 5: 7: 25: Text Fax Computer 35MM Image Slide SVGA Quality Stereo Audio CD- Videoconf - erence ISDN Video- Quality TV- Quality Page Page Image Slide 5 Minute Presentation HDTV High- Quality Complexity Example HD quality video: 92 8 pixel frame 3 bytes per pixel (Red, Green, Blue) 6 fps Bandwidth requirement: 373 MB/second => 2.99 Gbps Storage requirement 4.9 GB DVD would hold 3. seconds worth 2 minutes would require 2.69 TB! Some form of compression required! Chapter 2: Compression Basics 4 2

3 Outline Why compression? Classification Entropy and Information Theory Lossless compression techniques Run Length Encoding Variable Length Coding Dictionary-Based Coding Lossy encoding Chapter 2: Compression Basics 5 Classification () Compression is used to save storage space, and/or to reduce communications capacity requirements. Classification Lossless: No information is lost. Decompressed data are identical to the original uncompress data. Essential for text files, databases, binary object files, etc. Lossy: Approximation of the original data. Better compression ratio than lossless compression. Tradeoff between compression ratio and fidelity. e.g., audio, image, and video. 3

4 Classification (2) Entropy Coding Lossless encoding Used regardless of media s specific characteristics Data taken as a simple digital sequence Decompression process regenerates data completely e.g., run-length coding, Huffman coding, Arithmetic coding Source Coding Lossy encoding Takes into account the semantics of the data Degree of compression depends on data content e.g., content prediction technique - DPCM, delta modulation Hybrid Coding (used by most multimedia systems) Combine entropy with source encoding e.g., JPEG, MPEG-, MPEG-2, MPEG-4, H.264, H.265. Outline Why compression? Classification Entropy and Information Theory Lossless compression techniques Run Length Encoding Variable Length Coding Dictionary-Based Coding Lossy encoding Chapter 2: Compression Basics 8 4

5 Entropy and Information Theory Exploit statistical redundancies in the data to be compressed. The average information per symbol X, called entropy H, is defined as H(X) = p i log 2 i p i where, p i is the probability of the i th distinct symbol. Entropy represents the lower bound for lossless compression: i.e., when the probability of each symbol is fixed, it needs to be represented with at least with H bits on average. Chapter 2: Compression Basics 9 Entropy The closer the compressed bits per symbol to H, the better the compression. e.g., an image with uniform distribution of graylevel intensity, i.e., p i = /256, then the number of bits needed to code each gray level is 8 bits. The entropy of this image is 8. In general, the length of code i, L i, satisfies log 2 (/P i ) L i log 2 (/P i ) + Thus, average length of a code word, E[L], satisfies H(X) E[L] H(X) + 5

6 Entropy and Compression In compression, we are interested in constructing an optimum code, i.e., one that gives the minimum average length for the encoded message. Easy if the probability of occurrence for all the symbols are the same, e.g., last example. But if symbols have different probability of occurrence, e.g., Alphabet. See Huffman and Arithmetic coding. Chapter 2: Compression Basics Outline Why compression? Classification Entropy and Information Theory Lossless compression techniques Run Length Encoding Variable Length Coding Dictionary-Based Coding Lossy encoding Chapter 2: Compression Basics 2 6

7 Lossless Compression Techniques Run length encoding (RLE) Variable Length Coding (VLC) Huffman encoding Arithmetic encoding Dictionary-Based Coding Lempel-Ziv-Welch (LZW) encoding Chapter 2: Compression Basics 3 Run-Length Encoding Redundancy is exploited by not transmitting consecutive pixels or character values that are equal. The value of long runs can be coded once, along with the number of times the value is repeated (length of the run). Particularly useful for encoding black and white images where the data units would be single bit pixels, e.g., fax. Methods Binary RLE PackBits Chapter 2: Compression Basics 4 7

8 Binary RLE Transmit length of each run of s: Do not transmit runs of s. Two consecutive s are implicitly separated by a zerolength run. e.g., suppose 4 bits are used to represent the run length bits bits! All s indicate the next group is part of the same run What if stream started with? It would start with! Chapter 2: Compression Basics 5 Binary RLE Performance Worst case behavior: Transition occurs on each bit. Since we use k bits to encode each transition, k-of those bits are wasted. Best case behavior: No transition. k bits are used to represent a sequence of 2 k - consecutive bits. e.g., if n = 8, 2 k - = 255 Compression ratio is 2 k - => 255:8 => 32: Chapter 2: Compression Basics 6 8

9 RLE - PackBits Introduced by Apple. One of the standard forms of compression available in TIFF format (TIFF compression type 32773). TIFF = Tag Image File format. Each run is encoded into bytes as follows: Count Value... Value n- Header Byte Trailer Bytes : Literal run : Fill run Chapter 2: Compression Basics 7 PackBits - Literal Run Header byte: MSB = and 7 bits describe the length of the run of literal bytes. Trailer bytes: Characters are stored verbatim. Example: Mary had a little lamb <22>, M, a, r, y,, h, a, d,, a,, l, i, t, t, l, e,, l, a, m, b Chapter 2: Compression Basics 8 9

10 PackBits - Fill Run Header byte: MSB = and 7 bits describe the length of the run. Trailer byte: Byte that should be copied Example: AAAABBBBB <28+4>A<28+5>B What about for ABCCCCCCCCCDEFFFFGGG? <29>A<29>B<37>C<29>D<29>E<32>F<3>G Chapter 2: Compression Basics 9 PackBits Performance Worst case behavior: If entire image is transmitted without redundancy, the overhead is a byte (for the header byte) for each 28 bytes. Alternating runs add more overhead, up to 25%. Poorly designed encoder could do worse. Best case behavior: If entire image is redundant, then 2 bytes are used for each 28 consecutive bytes. This provides a compression ratio of 64:. Achieves a typical compression ratio of 2: to 5:. Chapter 2: Compression Basics 2

11 Huffman Coding Input values are mapped to output values of varying length, called variable-length code (VLC): Most probable inputs are coded with fewer bits. No code word can be prefix of another code word. Chapter 2: Compression Basics 2 Huffman Code Construction Initialization: Put all nodes (values, characters, or symbols) in an sorted list. Repeat until the list has only one node: Combine the two nodes having the lowest frequency (probability). Create a parent node assigning the sum of the children s probabilities and insert it in the list. Assign code, to the two branches, and delete children from the list. Chapter 2: Compression Basics 22

12 Example of Huffman Coding P() =.5 P() =.2 P() =. P() =.8 P() =.5 P() =.4 P() = Chapter 2: Compression Basics 23 Huffman Decoding P() =.5 P() =.2 P() =. P() =.8 P() =.5 P() =.4 P() = Chapter 2: Compression Basics 24 2

13 Efficiency of Huffman Coding Entropy H of the previous example: = 2.42 Average number of bits E[L] used to encode a symbol: = 2.7 Efficiency (2.42/2.7) of this code is.987. Very close to optimum! If we had simply used 3 bits: 3 ( ) = 3 So Huffman code is better! Chapter 2: Compression Basics 25 Adaptive Huffman Coding The previous algorithm requires the statistical knowledge, which is often not available (e.g., live audio, video) Even if it s available, it could be heavy overhead if the coding table is sent before the data: Negligible if the data file is large. Solution - adjust the Huffman tree on the fly, based on data previously seen. Encoder initial_code(); while ((c=getc(input))!=eof { } encode (c,output); update_tree(c); Decoder initial_code(); while ((c=decode(input))!=eof){ putc (c,output); update_tree(c); } Chapter 2: Compression Basics 26 3

14 Adaptive Huffman Coding initial_code() assigns symbols with some fixed codes. e.g., ASCII update_tree() constructs an adaptive Huffman tree: Huffman tree must maintain its sibling property: All nodes (internal and leaf) are arranged in the order of increasing counts => from left to right, bottom to top. When swap is necessary, the farthest nodes with count N is swapped with the nodes whose count has just been increased to N+. May need to be performed multiple times. Chapter 2: Compression Basics 27 Adaptive Huffman Coding () 5. w=3 7. w= w=4 Hit on A A B C D. 2. w=2 3.w=2 4.w=2 E 8. Sibling Property Increasing order of weights w=4 7. w=8 6. w=4 E 8. A B C D. w=2 2. w=2 3.w=2 4.w=2 Chapter 2: Compression Basics 28 4

15 Adaptive Huffman Coding (2) 2nd hit on A 5. w=4 7. w= w=4 Swap A B C D. w=2+ 2. w=2 3.w=2 4.w=2 E 8. Farthest from A with count = N = w=9 5. w=4 6. w=5 D B C A. w=2 2. w=2 3.w=2 4.w=3 E 8. Encoded symbols: A=, B=, C= D =, E = Chapter 2: Compression Basics 29 Adaptive Huffman Coding (3) 7. A 5. w=5 5. w= w=9 Swap w=5 D B C A. w=2 2. w=2 3.w=2 4.w=3+2 Swap 6. w=6 4. w=4 C 3. w=2 D B. w=2 2. w=2 E 8. E 8. 2 more hits on A Encoded symbols: A=, B=, C= D =, E = 9. w=2 7. E w=6 A 5. w=5 4. w=4 C 3. w=2 D B. w=2 2. w=2 Chapter 2: Compression Basics 3 5

16 Adaptive Huffman Coding - Initialization Initially there is no tree. Symbols sent for the first time use fixed code: e.g., ASCII Any new node spawned from New. Except for the first symbol, any symbol sent afterwards for the first time is preceded by a special symbol New. Count for New is always. Code for symbol New depends on the location of the node New in the tree. Code for symbol sent for the first time is code for New + fixed code for symbol All other codes are based on the Huffman tree. Chapter 2: Compression Basics 3 Initialization - Example Suppose we are sending AABCDAD Fixed code: A =, B =, C =, D =, New = Initially, there is no tree. Send AABCDA Output = Decode = A Update tree for A Update tree for A New w= A New w= A Send AABCDA Update tree for A Output = Decode = A Update tree for A w=2 w=2 New w= A w=2 New w= A w=2 Chapter 2: Compression Basics 32 6

17 Initialization - Example Send AABCDA Update tree for B w=3 A w=2 New w= B Output = Decode = B Update tree for B w=3 A w=2 New w= B Send AABCDA Update tree for C w=4 w=2 A w=2 B New w= C Output = Decode = C Update tree for C w=4 w=2 A w=2 B New w= C Chapter 2: Compression Basics 33 Initialization - Example Send AABCDA Update tree for D Output = w=5 w=3 A w=2 w=2 B C New D w= Decode = D Update tree for D w=5 w=3 A w=2 w=2 B C New D w= Exchange w=5 w=3 A w=2 w=2 B C New D w= Exchange w=5 w=3 A w=2 w=2 B C New D w= Chapter 2: Compression Basics 34 7

18 Initialization - Example Send AABCDA Update tree for A Output = w=6 w=3 A w=3 w=2 B C New D w= Decode = A Update tree for A w=6 w=3 A w=3 w=2 B C New D w= Final transmitted code A A B C D A Chapter 2: Compression Basics 35 Arithmetic Coding Huffman coding is optimal only when the symbol probabilities are integral powers of /2, which rarely is the case. Each symbol is coded by considering prior data: Coding efficiency can be improved when symbols are combined. Yields a single code word for each string of symbols. Each symbol (or string of symbols) is a fractional number. Arithmetic encoding provides slightly better coding efficiency than Huffman. Chapter 2: Compression Basics 36 8

19 Arithmetic Coding Algorithm BEGIN low =.; high =.; range =.; while (symbol!= terminator) { low = low + range * Range_low(symbol); high = low + range * Range_high(symbol); range = high - low; } output a code so that low <= code < high; END Chapter 2: Compression Basics 37 Arithmetic Coding Example. Example: P(a) =.5, P(b) =.25, P(c) =.25 Coding the sequence b,a,a,c b a a c... a.5.25 b c [.4375,.45325).25 Binary rep. of final interval [.,.).25 P(a)= P(a)= P(c)=.563 Chapter 2: Compression Basics 38 9

20 Arithmetic Coding Size of the final subinterval, i.e., range s, is =.5625, which is also determined by the product of the probabilities of the source message, P(b) P(a) P(a) P(c). The number of bits needed to specify the final subinterval is given by at most log 2 s = 6 bits. Choose the smallest binary fraction that lies within [.,.). Code is (from.)! Entropy H is.5() +.25(2) +.25(2) =.5 bits/symbol 4 symbols encoded with 6 bits gives.5 bits/symbol! Fixed length code would have required 2 bits/symbol. Chapter 2: Compression Basics 39 Code Generator for Encoder BEGIN code = ; k = ; while (value(code) < low) { assign to the kth binary fraction bit; if (value(code) >= high) replace the kth bit by ; k = k + ; } END Chapter 2: Compression Basics 4 2

21 Code Generator Example For the previous example low =.4375 and high = k = : NIL < low,. (.5) > high => continue (.) k = 2:. (.) < low,. (.25) < high => continue (.) k = 3:. (.25) < low,. (.375) < high => continue (.) k = 4:. (.375) < low,. (.4375) < high => continue (.) K =5:. (.4375) = low => terminate Output code is (from.) Chapter 2: Compression Basics 4 Decoding BEGIN get binary code and convert to decimal value = value(code); do { find a symbol so that Range_low(symbol) <= value < Range_high(symbol) output symbol; low = Range_low(symbol); high = Range_high(symbol); range = high - low; value = [value - low] / range } until symbol is a terminator END Chapter 2: Compression Basics 42 2

22 Decoding Example. = b. = a. = a. = c a.75 a a a b b b b c c c c.4375 [ ]/P(b) =.75 [.75-.5]/P(a) =.5 [.5-.5]/P(a) = Chapter 2: Compression Basics 43 Arithmetic Coding Issues Need to know when to stop, e.g., in the previous example, can be c, cc, ccc, etc.: A special character is included to signal end of message. Precision can grow without bound as length of message grows: Fixed precision registers are used with detection and management of overflow and underflow. Chapter 2: Compression Basics 44 22

23 Lempel-Ziv-Welch Coding Patterns that occur frequently can be substituted by single byte: e.g. begin, end, if Dynamically builds a dictionary of phrases from the input stream (in addition to the dictionary of 256 ASCII characters). Checks to see if a phase is recorded in the dictionary: If not, add the phase in the dictionary. Otherwise, output a code for that phrase. Can be applied to still images, audio, video. A good choice for compressing text files: Used in GIF,.Z, and.gzip compression algorithms. Chapter 2: Compression Basics 45 LZW Compression Example: Input string is "^WED^WE^WEE^WEB^WET". s = first input character while ( not EOF ) { } c = next input character; if s+c exists in the dictionary else { { s = s+c; output the code for s; add s+c to the dictionary; s = c; output code for s; 9-symbol input has been reduced to 7-symbol + 5-code output! s c Output Index Symbol ^ W ^ 256 ^W W E W 257 WE E D E 258 ED D ^ D 259 D^ ^ W ^W E ^WE E ^ E 26 E^ ^ W ^W E ^WE E ^WEE E ^ E^ W E^W W E WE B WEB B ^ B 265 B^ ^ W ^W E ^WE T ^WET T EOF T Chapter 2: Compression Basics 46 23

24 LZW Decompression Example: Compressed string is "^WED<256>E<26><26><257>B<26>T". s = NIL While (not EOF) { k = next input code; entry = dictionary entry for k; output entry; if (s!= NIL) add s + entry[] to dictionary; s = entry; } s k Output Index Symbol NIL ^ ^ ^ W W 256 ^W W E E 257 WE E D D 258 ED D <256> ^W 259 D^ <256> E E 26 ^WE E <26> ^WE 26 E^ <26> <26> E^ 262 ^WEE <26> <257> WE 263 E^W <257> B B 264 WEB B <26> ^WE 265 B^ 26 T T 266 ^WET Decompressor builds its own dictionary, so only the code needs to be sent! Chapter 2: Compression Basics 47 LZW Algorithm Details () Example: Input string is ABABBABCABBABBAX. Compressed string is AB<256><257>BC<258><262>X. s c Output Index Symbol A B A 256 AB B A B 257 BA A B AB B ABB B A BA B BAB B C B 26 BC C A C 26 CA A B AB B ABB A ABBA A B AB B ABB A ABBA X ABBAX X X => s k Output Index Symbol NIL A A A B B 256 AB B <256> AB 257 BA <256> <257> BA 258 ABB <257> B B 259 BAB B C C 26 BC C <258> ABB 26 CA <258> <262>??? 262??? <262> = ABBA =A + BB + A Not yet in the dictionary! Whenever encoder encounters Character + String + Character, it creates a new code and use it right away before the decoder has a chance to create it! Chapter 2: Compression Basics 48 24

25 LZW Algorithm Details (2) What if Input string is ABABBABCABBXBBAX. Compressed string is AB<256><257>BC<258>XB<257>X. s c Output Index Symbol A B A 256 AB B A B 257 BA A B AB B ABB B A BA B BAB B C B 26 BC C A C 26 CA A B AB B ABB X ABBX X B X 263 XB B B B 264 BB B A BA X BAX X X => s k Output Index Symbol NIL A A A B B 256 AB B <256> AB 257 BA <256> <257> BA 258 ABB <257> B B 259 BAB B C C 26 BC C <258> ABB 26 CA <258> X X 262 ABBX X B B 263 XB B <257> BA 264 BB <257> X X 265 BAX No problem! Chapter 2: Compression Basics 49 Modified LZW Decompression s = NIL While (not EOF) { } k = next input code; entry = dictionary entry for k; /* Exception Handler */ if (entry == NULL) entry = s + s[]; output entry; if (s!= NIL) add s + entry[] to dictionary; s = entry; Compressed string is AB<256><257>BC<258><262>X. s k Output Index Symbol A A A B B 256 AB B <256> AB 257 BA <256> <257> BA 258 ABB <257> B B 259 BAB B C C 26 BC C <258> ABB 26 CA <258> <262> ABBA 262 ABBA ABBA X X 263 ABBAX ABB + A s s[]; first character of s Chapter 2: Compression Basics 5 25

26 Outline Why compression? Classification Entropy and Information Theory Lossless compression techniques Run Length Encoding Variable Length Coding Dictionary-Based Coding Lossy encoding Chapter 2: Compression Basics 5 Lossy Encoding Coding is lossy: Consider sequences of symbols S, S2, S3, etc., where values are not zeros but do not vary very much. Calculate difference from previous value => S, S2-S, S3-S2, etc. e.g., Still image Calculate difference between nearby pixels or pixel groups. Edges characterized by large values, areas with similar luminance and chrominance are characterized by small values. Zeros can be compressed by run-length encoding and nearby pixels with large values can be encoded as differences. 26

27 Questions? 27

Ch. 2: Compression Basics Multimedia Systems

Ch. 2: Compression Basics Multimedia Systems Ch. 2: Compression Basics Multimedia Systems Prof. Thinh Nguyen (Based on Prof. Ben Lee s Slides) Oregon State University School of Electrical Engineering and Computer Science Outline Why compression?

More information

Multimedia Networking ECE 599

Multimedia Networking ECE 599 Multimedia Networking ECE 599 Prof. Thinh Nguyen School of Electrical Engineering and Computer Science Based on B. Lee s lecture notes. 1 Outline Compression basics Entropy and information theory basics

More information

Chapter 7 Lossless Compression Algorithms

Chapter 7 Lossless Compression Algorithms Chapter 7 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information Theory 7.3 Run-Length Coding 7.4 Variable-Length Coding (VLC) 7.5 Dictionary-based Coding 7.6 Arithmetic Coding 7.7

More information

EE67I Multimedia Communication Systems Lecture 4

EE67I Multimedia Communication Systems Lecture 4 EE67I Multimedia Communication Systems Lecture 4 Lossless Compression Basics of Information Theory Compression is either lossless, in which no information is lost, or lossy in which information is lost.

More information

Data Compression. An overview of Compression. Multimedia Systems and Applications. Binary Image Compression. Binary Image Compression

Data Compression. An overview of Compression. Multimedia Systems and Applications. Binary Image Compression. Binary Image Compression An overview of Compression Multimedia Systems and Applications Data Compression Compression becomes necessary in multimedia because it requires large amounts of storage space and bandwidth Types of Compression

More information

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Lecture 10 (Chapter 7) ZHU Yongxin, Winson

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Lecture 10 (Chapter 7) ZHU Yongxin, Winson Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Lecture 10 (Chapter 7) ZHU Yongxin, Winson zhuyongxin@sjtu.edu.cn 2 Lossless Compression Algorithms 7.1 Introduction 7.2 Basics of Information

More information

Data Compression Fundamentals

Data Compression Fundamentals 1 Data Compression Fundamentals Touradj Ebrahimi Touradj.Ebrahimi@epfl.ch 2 Several classifications of compression methods are possible Based on data type :» Generic data compression» Audio compression»

More information

Fundamentals of Multimedia. Lecture 5 Lossless Data Compression Variable Length Coding

Fundamentals of Multimedia. Lecture 5 Lossless Data Compression Variable Length Coding Fundamentals of Multimedia Lecture 5 Lossless Data Compression Variable Length Coding Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Mahmoud El-Gayyar / Fundamentals of Multimedia 1 Data Compression Compression

More information

Lossless Compression Algorithms

Lossless Compression Algorithms Multimedia Data Compression Part I Chapter 7 Lossless Compression Algorithms 1 Chapter 7 Lossless Compression Algorithms 1. Introduction 2. Basics of Information Theory 3. Lossless Compression Algorithms

More information

Repetition 1st lecture

Repetition 1st lecture Repetition 1st lecture Human Senses in Relation to Technical Parameters Multimedia - what is it? Human senses (overview) Historical remarks Color models RGB Y, Cr, Cb Data rates Text, Graphic Picture,

More information

Multimedia Systems. Part 20. Mahdi Vasighi

Multimedia Systems. Part 20. Mahdi Vasighi Multimedia Systems Part 2 Mahdi Vasighi www.iasbs.ac.ir/~vasighi Department of Computer Science and Information Technology, Institute for dvanced Studies in asic Sciences, Zanjan, Iran rithmetic Coding

More information

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression IMAGE COMPRESSION Image Compression Why? Reducing transportation times Reducing file size A two way event - compression and decompression 1 Compression categories Compression = Image coding Still-image

More information

Entropy Coding. - to shorten the average code length by assigning shorter codes to more probable symbols => Morse-, Huffman-, Arithmetic Code

Entropy Coding. - to shorten the average code length by assigning shorter codes to more probable symbols => Morse-, Huffman-, Arithmetic Code Entropy Coding } different probabilities for the appearing of single symbols are used - to shorten the average code length by assigning shorter codes to more probable symbols => Morse-, Huffman-, Arithmetic

More information

Intro. To Multimedia Engineering Lossless Compression

Intro. To Multimedia Engineering Lossless Compression Intro. To Multimedia Engineering Lossless Compression Kyoungro Yoon yoonk@konkuk.ac.kr 1/43 Contents Introduction Basics of Information Theory Run-Length Coding Variable-Length Coding (VLC) Dictionary-based

More information

VC 12/13 T16 Video Compression

VC 12/13 T16 Video Compression VC 12/13 T16 Video Compression Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Miguel Tavares Coimbra Outline The need for compression Types of redundancy

More information

CS 335 Graphics and Multimedia. Image Compression

CS 335 Graphics and Multimedia. Image Compression CS 335 Graphics and Multimedia Image Compression CCITT Image Storage and Compression Group 3: Huffman-type encoding for binary (bilevel) data: FAX Group 4: Entropy encoding without error checks of group

More information

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I 1 Need For Compression 2D data sets are much larger than 1D. TV and movie data sets are effectively 3D (2-space, 1-time). Need Compression for

More information

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1 IMAGE COMPRESSION- I Week VIII Feb 25 02/25/2003 Image Compression-I 1 Reading.. Chapter 8 Sections 8.1, 8.2 8.3 (selected topics) 8.4 (Huffman, run-length, loss-less predictive) 8.5 (lossy predictive,

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Image Compression Caution: The PDF version of this presentation will appear to have errors due to heavy use of animations Material in this presentation is largely based on/derived

More information

ECE 499/599 Data Compression & Information Theory. Thinh Nguyen Oregon State University

ECE 499/599 Data Compression & Information Theory. Thinh Nguyen Oregon State University ECE 499/599 Data Compression & Information Theory Thinh Nguyen Oregon State University Adminstrivia Office Hours TTh: 2-3 PM Kelley Engineering Center 3115 Class homepage http://www.eecs.orst.edu/~thinhq/teaching/ece499/spring06/spring06.html

More information

Compression; Error detection & correction

Compression; Error detection & correction Compression; Error detection & correction compression: squeeze out redundancy to use less memory or use less network bandwidth encode the same information in fewer bits some bits carry no information some

More information

Encoding. A thesis submitted to the Graduate School of University of Cincinnati in

Encoding. A thesis submitted to the Graduate School of University of Cincinnati in Lossless Data Compression for Security Purposes Using Huffman Encoding A thesis submitted to the Graduate School of University of Cincinnati in a partial fulfillment of requirements for the degree of Master

More information

Chapter 1. Digital Data Representation and Communication. Part 2

Chapter 1. Digital Data Representation and Communication. Part 2 Chapter 1. Digital Data Representation and Communication Part 2 Compression Digital media files are usually very large, and they need to be made smaller compressed Without compression Won t have storage

More information

A Research Paper on Lossless Data Compression Techniques

A Research Paper on Lossless Data Compression Techniques IJIRST International Journal for Innovative Research in Science & Technology Volume 4 Issue 1 June 2017 ISSN (online): 2349-6010 A Research Paper on Lossless Data Compression Techniques Prof. Dipti Mathpal

More information

A Comparative Study of Entropy Encoding Techniques for Lossless Text Data Compression

A Comparative Study of Entropy Encoding Techniques for Lossless Text Data Compression A Comparative Study of Entropy Encoding Techniques for Lossless Text Data Compression P. RATNA TEJASWI 1 P. DEEPTHI 2 V.PALLAVI 3 D. GOLDIE VAL DIVYA 4 Abstract: Data compression is the art of reducing

More information

Data Compression. Guest lecture, SGDS Fall 2011

Data Compression. Guest lecture, SGDS Fall 2011 Data Compression Guest lecture, SGDS Fall 2011 1 Basics Lossy/lossless Alphabet compaction Compression is impossible Compression is possible RLE Variable-length codes Undecidable Pigeon-holes Patterns

More information

Engineering Mathematics II Lecture 16 Compression

Engineering Mathematics II Lecture 16 Compression 010.141 Engineering Mathematics II Lecture 16 Compression Bob McKay School of Computer Science and Engineering College of Engineering Seoul National University 1 Lossless Compression Outline Huffman &

More information

SIGNAL COMPRESSION Lecture Lempel-Ziv Coding

SIGNAL COMPRESSION Lecture Lempel-Ziv Coding SIGNAL COMPRESSION Lecture 5 11.9.2007 Lempel-Ziv Coding Dictionary methods Ziv-Lempel 77 The gzip variant of Ziv-Lempel 77 Ziv-Lempel 78 The LZW variant of Ziv-Lempel 78 Asymptotic optimality of Ziv-Lempel

More information

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION 15 Data Compression Data compression implies sending or storing a smaller number of bits. Although many methods are used for this purpose, in general these methods can be divided into two broad categories:

More information

IMAGE COMPRESSION TECHNIQUES

IMAGE COMPRESSION TECHNIQUES IMAGE COMPRESSION TECHNIQUES A.VASANTHAKUMARI, M.Sc., M.Phil., ASSISTANT PROFESSOR OF COMPUTER SCIENCE, JOSEPH ARTS AND SCIENCE COLLEGE, TIRUNAVALUR, VILLUPURAM (DT), TAMIL NADU, INDIA ABSTRACT A picture

More information

Digital Image Processing

Digital Image Processing Lecture 9+10 Image Compression Lecturer: Ha Dai Duong Faculty of Information Technology 1. Introduction Image compression To Solve the problem of reduncing the amount of data required to represent a digital

More information

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay Lecture - 29 Source Coding (Part-4) We have already had 3 classes on source coding

More information

7.5 Dictionary-based Coding

7.5 Dictionary-based Coding 7.5 Dictionary-based Coding LZW uses fixed-length code words to represent variable-length strings of symbols/characters that commonly occur together, e.g., words in English text LZW encoder and decoder

More information

Optimized Compression and Decompression Software

Optimized Compression and Decompression Software 2015 IJSRSET Volume 1 Issue 3 Print ISSN : 2395-1990 Online ISSN : 2394-4099 Themed Section: Engineering and Technology Optimized Compression and Decompression Software Mohd Shafaat Hussain, Manoj Yadav

More information

Data Compression. Media Signal Processing, Presentation 2. Presented By: Jahanzeb Farooq Michael Osadebey

Data Compression. Media Signal Processing, Presentation 2. Presented By: Jahanzeb Farooq Michael Osadebey Data Compression Media Signal Processing, Presentation 2 Presented By: Jahanzeb Farooq Michael Osadebey What is Data Compression? Definition -Reducing the amount of data required to represent a source

More information

IMAGE COMPRESSION. Chapter - 5 : (Basic)

IMAGE COMPRESSION. Chapter - 5 : (Basic) Chapter - 5 : IMAGE COMPRESSION (Basic) Q() Explain the different types of redundncies that exists in image.? (8M May6 Comp) [8M, MAY 7, ETRX] A common characteristic of most images is that the neighboring

More information

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2 IJESRT INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY LOSSLESS METHOD OF IMAGE COMPRESSION USING HUFFMAN CODING TECHNIQUES Trupti S Bobade *, Anushri S. sastikar 1 Department of electronics

More information

IMAGE COMPRESSION TECHNIQUES

IMAGE COMPRESSION TECHNIQUES International Journal of Information Technology and Knowledge Management July-December 2010, Volume 2, No. 2, pp. 265-269 Uchale Bhagwat Shankar The use of digital images has increased at a rapid pace

More information

CMPT 365 Multimedia Systems. Media Compression - Image

CMPT 365 Multimedia Systems. Media Compression - Image CMPT 365 Multimedia Systems Media Compression - Image Spring 2017 Edited from slides by Dr. Jiangchuan Liu CMPT365 Multimedia Systems 1 Facts about JPEG JPEG - Joint Photographic Experts Group International

More information

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J. Data Storage Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J. Glenn Brookshear Copyright 2012 Pearson Education, Inc. Data Storage Bits

More information

Image coding and compression

Image coding and compression Image coding and compression Robin Strand Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University Today Information and Data Redundancy Image Quality Compression Coding

More information

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression Digital Compression Page 8.1 DigiPoints Volume 1 Module 8 Digital Compression Summary This module describes the techniques by which digital signals are compressed in order to make it possible to carry

More information

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013 ECE 417 Guest Lecture Video Compression in MPEG-1/2/4 Min-Hsuan Tsai Apr 2, 213 What is MPEG and its standards MPEG stands for Moving Picture Expert Group Develop standards for video/audio compression

More information

David Rappaport School of Computing Queen s University CANADA. Copyright, 1996 Dale Carnegie & Associates, Inc.

David Rappaport School of Computing Queen s University CANADA. Copyright, 1996 Dale Carnegie & Associates, Inc. David Rappaport School of Computing Queen s University CANADA Copyright, 1996 Dale Carnegie & Associates, Inc. Data Compression There are two broad categories of data compression: Lossless Compression

More information

Fundamentals of Video Compression. Video Compression

Fundamentals of Video Compression. Video Compression Fundamentals of Video Compression Introduction to Digital Video Basic Compression Techniques Still Image Compression Techniques - JPEG Video Compression Introduction to Digital Video Video is a stream

More information

Lempel-Ziv-Welch (LZW) Compression Algorithm

Lempel-Ziv-Welch (LZW) Compression Algorithm Lempel-Ziv-Welch (LZW) Compression lgorithm Introduction to the LZW lgorithm Example 1: Encoding using LZW Example 2: Decoding using LZW LZW: Concluding Notes Introduction to LZW s mentioned earlier, static

More information

A study in compression algorithms

A study in compression algorithms Master Thesis Computer Science Thesis no: MCS-004:7 January 005 A study in compression algorithms Mattias Håkansson Sjöstrand Department of Interaction and System Design School of Engineering Blekinge

More information

Image Coding and Compression

Image Coding and Compression Lecture 17, Image Coding and Compression GW Chapter 8.1 8.3.1, 8.4 8.4.3, 8.5.1 8.5.2, 8.6 Suggested problem: Own problem Calculate the Huffman code of this image > Show all steps in the coding procedure,

More information

Analysis of Parallelization Effects on Textual Data Compression

Analysis of Parallelization Effects on Textual Data Compression Analysis of Parallelization Effects on Textual Data GORAN MARTINOVIC, CASLAV LIVADA, DRAGO ZAGAR Faculty of Electrical Engineering Josip Juraj Strossmayer University of Osijek Kneza Trpimira 2b, 31000

More information

ITCT Lecture 8.2: Dictionary Codes and Lempel-Ziv Coding

ITCT Lecture 8.2: Dictionary Codes and Lempel-Ziv Coding ITCT Lecture 8.2: Dictionary Codes and Lempel-Ziv Coding Huffman codes require us to have a fairly reasonable idea of how source symbol probabilities are distributed. There are a number of applications

More information

A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION. Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo

A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION. Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo Integrated Media Systems Center and Department of Electrical Engineering University

More information

15 July, Huffman Trees. Heaps

15 July, Huffman Trees. Heaps 1 Huffman Trees The Huffman Code: Huffman algorithm uses a binary tree to compress data. It is called the Huffman code, after David Huffman who discovered d it in 1952. Data compression is important in

More information

Bits and Bit Patterns

Bits and Bit Patterns Bits and Bit Patterns Bit: Binary Digit (0 or 1) Bit Patterns are used to represent information. Numbers Text characters Images Sound And others 0-1 Boolean Operations Boolean Operation: An operation that

More information

Compression I: Basic Compression Algorithms

Compression I: Basic Compression Algorithms Compression I: Basic Compression Algorithms Recap: The Need for Compression Raw Video, Image and Audio files are very large beasts: 337 Uncompressed Audio 1 minute of Audio: Audio Type 44.1 KHz 22.05 KHz

More information

Indexing. CS6200: Information Retrieval. Index Construction. Slides by: Jesse Anderton

Indexing. CS6200: Information Retrieval. Index Construction. Slides by: Jesse Anderton Indexing Index Construction CS6200: Information Retrieval Slides by: Jesse Anderton Motivation: Scale Corpus Terms Docs Entries A term incidence matrix with V terms and D documents has O(V x D) entries.

More information

Source Coding Basics and Speech Coding. Yao Wang Polytechnic University, Brooklyn, NY11201

Source Coding Basics and Speech Coding. Yao Wang Polytechnic University, Brooklyn, NY11201 Source Coding Basics and Speech Coding Yao Wang Polytechnic University, Brooklyn, NY1121 http://eeweb.poly.edu/~yao Outline Why do we need to compress speech signals Basic components in a source coding

More information

Compression; Error detection & correction

Compression; Error detection & correction Compression; Error detection & correction compression: squeeze out redundancy to use less memory or use less network bandwidth encode the same information in fewer bits some bits carry no information some

More information

A New Compression Method Strictly for English Textual Data

A New Compression Method Strictly for English Textual Data A New Compression Method Strictly for English Textual Data Sabina Priyadarshini Department of Computer Science and Engineering Birla Institute of Technology Abstract - Data compression is a requirement

More information

MCS-375: Algorithms: Analysis and Design Handout #G2 San Skulrattanakulchai Gustavus Adolphus College Oct 21, Huffman Codes

MCS-375: Algorithms: Analysis and Design Handout #G2 San Skulrattanakulchai Gustavus Adolphus College Oct 21, Huffman Codes MCS-375: Algorithms: Analysis and Design Handout #G2 San Skulrattanakulchai Gustavus Adolphus College Oct 21, 2016 Huffman Codes CLRS: Ch 16.3 Ziv-Lempel is the most popular compression algorithm today.

More information

Lecture 6: Compression II. This Week s Schedule

Lecture 6: Compression II. This Week s Schedule Lecture 6: Compression II Reading: book chapter 8, Section 1, 2, 3, 4 Monday This Week s Schedule The concept behind compression Rate distortion theory Image compression via DCT Today Speech compression

More information

Lecture 8 JPEG Compression (Part 3)

Lecture 8 JPEG Compression (Part 3) CS 414 Multimedia Systems Design Lecture 8 JPEG Compression (Part 3) Klara Nahrstedt Spring 2011 Administrative MP1 is posted Extended Deadline of MP1 is February 18 Friday midnight submit via compass

More information

FPGA based Data Compression using Dictionary based LZW Algorithm

FPGA based Data Compression using Dictionary based LZW Algorithm FPGA based Data Compression using Dictionary based LZW Algorithm Samish Kamble PG Student, E & TC Department, D.Y. Patil College of Engineering, Kolhapur, India Prof. S B Patil Asso.Professor, E & TC Department,

More information

Lecture 8 JPEG Compression (Part 3)

Lecture 8 JPEG Compression (Part 3) CS 414 Multimedia Systems Design Lecture 8 JPEG Compression (Part 3) Klara Nahrstedt Spring 2012 Administrative MP1 is posted Today Covered Topics Hybrid Coding: JPEG Coding Reading: Section 7.5 out of

More information

2.2: Images and Graphics Digital image representation Image formats and color models JPEG, JPEG2000 Image synthesis and graphics systems

2.2: Images and Graphics Digital image representation Image formats and color models JPEG, JPEG2000 Image synthesis and graphics systems Chapter 2: Representation of Multimedia Data Audio Technology Images and Graphics Video Technology Chapter 3: Multimedia Systems Communication Aspects and Services Chapter 4: Multimedia Systems Storage

More information

More Bits and Bytes Huffman Coding

More Bits and Bytes Huffman Coding More Bits and Bytes Huffman Coding Encoding Text: How is it done? ASCII, UTF, Huffman algorithm ASCII C A T Lawrence Snyder, CSE UTF-8: All the alphabets in the world Uniform Transformation Format: a variable-width

More information

Digital Image Representation. Image Representation. Color Models

Digital Image Representation. Image Representation. Color Models Digital Representation Chapter : Representation of Multimedia Data Audio Technology s and Graphics Video Technology Chapter 3: Multimedia Systems Communication Aspects and Services Chapter 4: Multimedia

More information

14.4 Description of Huffman Coding

14.4 Description of Huffman Coding Mastering Algorithms with C By Kyle Loudon Slots : 1 Table of Contents Chapter 14. Data Compression Content 14.4 Description of Huffman Coding One of the oldest and most elegant forms of data compression

More information

EE-575 INFORMATION THEORY - SEM 092

EE-575 INFORMATION THEORY - SEM 092 EE-575 INFORMATION THEORY - SEM 092 Project Report on Lempel Ziv compression technique. Department of Electrical Engineering Prepared By: Mohammed Akber Ali Student ID # g200806120. ------------------------------------------------------------------------------------------------------------------------------------------

More information

Compression. storage medium/ communications network. For the purpose of this lecture, we observe the following constraints:

Compression. storage medium/ communications network. For the purpose of this lecture, we observe the following constraints: CS231 Algorithms Handout # 31 Prof. Lyn Turbak November 20, 2001 Wellesley College Compression The Big Picture We want to be able to store and retrieve data, as well as communicate it with others. In general,

More information

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy Image Codning and Compression data redundancy, Huffman coding, image formats Lecture 7 Gonzalez-Woods: 8.-8.3., 8.4-8.4.3, 8.5.-8.5.2, 8.6 Carolina Wählby carolina@cb.uu.se 08-47 3469 Data and information

More information

Wireless Communication

Wireless Communication Wireless Communication Systems @CS.NCTU Lecture 6: Image Instructor: Kate Ching-Ju Lin ( 林靖茹 ) Chap. 9 of Fundamentals of Multimedia Some reference from http://media.ee.ntu.edu.tw/courses/dvt/15f/ 1 Outline

More information

Data compression with Huffman and LZW

Data compression with Huffman and LZW Data compression with Huffman and LZW André R. Brodtkorb, Andre.Brodtkorb@sintef.no Outline Data storage and compression Huffman: how it works and where it's used LZW: how it works and where it's used

More information

CoE4TN4 Image Processing. Chapter 8 Image Compression

CoE4TN4 Image Processing. Chapter 8 Image Compression CoE4TN4 Image Processing Chapter 8 Image Compression Image Compression Digital images: take huge amount of data Storage, processing and communications requirements might be impractical More efficient representation

More information

VIDEO SIGNALS. Lossless coding

VIDEO SIGNALS. Lossless coding VIDEO SIGNALS Lossless coding LOSSLESS CODING The goal of lossless image compression is to represent an image signal with the smallest possible number of bits without loss of any information, thereby speeding

More information

Noise Reduction in Data Communication Using Compression Technique

Noise Reduction in Data Communication Using Compression Technique Digital Technologies, 2016, Vol. 2, No. 1, 9-13 Available online at http://pubs.sciepub.com/dt/2/1/2 Science and Education Publishing DOI:10.12691/dt-2-1-2 Noise Reduction in Data Communication Using Compression

More information

So, what is data compression, and why do we need it?

So, what is data compression, and why do we need it? In the last decade we have been witnessing a revolution in the way we communicate 2 The major contributors in this revolution are: Internet; The explosive development of mobile communications; and The

More information

7: Image Compression

7: Image Compression 7: Image Compression Mark Handley Image Compression GIF (Graphics Interchange Format) PNG (Portable Network Graphics) MNG (Multiple-image Network Graphics) JPEG (Join Picture Expert Group) 1 GIF (Graphics

More information

ENSC Multimedia Communications Engineering Topic 4: Huffman Coding 2

ENSC Multimedia Communications Engineering Topic 4: Huffman Coding 2 ENSC 424 - Multimedia Communications Engineering Topic 4: Huffman Coding 2 Jie Liang Engineering Science Simon Fraser University JieL@sfu.ca J. Liang: SFU ENSC 424 1 Outline Canonical Huffman code Huffman

More information

CS/COE 1501

CS/COE 1501 CS/COE 1501 www.cs.pitt.edu/~nlf4/cs1501/ Compression What is compression? Represent the same data using less storage space Can get more use out a disk of a given size Can get more use out of memory E.g.,

More information

A Comparative Study of Lossless Compression Algorithm on Text Data

A Comparative Study of Lossless Compression Algorithm on Text Data Proc. of Int. Conf. on Advances in Computer Science, AETACS A Comparative Study of Lossless Compression Algorithm on Text Data Amit Jain a * Kamaljit I. Lakhtaria b, Prateek Srivastava c a, b, c Department

More information

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved Chapter 1 Data Storage 2007 Pearson Addison-Wesley. All rights reserved Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns

More information

CS/COE 1501

CS/COE 1501 CS/COE 1501 www.cs.pitt.edu/~lipschultz/cs1501/ Compression What is compression? Represent the same data using less storage space Can get more use out a disk of a given size Can get more use out of memory

More information

Topic 5 Image Compression

Topic 5 Image Compression Topic 5 Image Compression Introduction Data Compression: The process of reducing the amount of data required to represent a given quantity of information. Purpose of Image Compression: the reduction of

More information

CIS 121 Data Structures and Algorithms with Java Spring 2018

CIS 121 Data Structures and Algorithms with Java Spring 2018 CIS 121 Data Structures and Algorithms with Java Spring 2018 Homework 6 Compression Due: Monday, March 12, 11:59pm online 2 Required Problems (45 points), Qualitative Questions (10 points), and Style and

More information

Basic Compression Library

Basic Compression Library Basic Compression Library Manual API version 1.2 July 22, 2006 c 2003-2006 Marcus Geelnard Summary This document describes the algorithms used in the Basic Compression Library, and how to use the library

More information

Lossless compression II

Lossless compression II Lossless II D 44 R 52 B 81 C 84 D 86 R 82 A 85 A 87 A 83 R 88 A 8A B 89 A 8B Symbol Probability Range a 0.2 [0.0, 0.2) e 0.3 [0.2, 0.5) i 0.1 [0.5, 0.6) o 0.2 [0.6, 0.8) u 0.1 [0.8, 0.9)! 0.1 [0.9, 1.0)

More information

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay

Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay Digital Communication Prof. Bikash Kumar Dey Department of Electrical Engineering Indian Institute of Technology, Bombay Lecture - 26 Source Coding (Part 1) Hello everyone, we will start a new module today

More information

Improving LZW Image Compression

Improving LZW Image Compression European Journal of Scientific Research ISSN 1450-216X Vol.44 No.3 (2010), pp.502-509 EuroJournals Publishing, Inc. 2010 http://www.eurojournals.com/ejsr.htm Improving LZW Image Compression Sawsan A. Abu

More information

WIRE/WIRELESS SENSOR NETWORKS USING K-RLE ALGORITHM FOR A LOW POWER DATA COMPRESSION

WIRE/WIRELESS SENSOR NETWORKS USING K-RLE ALGORITHM FOR A LOW POWER DATA COMPRESSION WIRE/WIRELESS SENSOR NETWORKS USING K-RLE ALGORITHM FOR A LOW POWER DATA COMPRESSION V.KRISHNAN1, MR. R.TRINADH 2 1 M. Tech Student, 2 M. Tech., Assistant Professor, Dept. Of E.C.E, SIR C.R. Reddy college

More information

CS 493: Algorithms for Massive Data Sets Dictionary-based compression February 14, 2002 Scribe: Tony Wirth LZ77

CS 493: Algorithms for Massive Data Sets Dictionary-based compression February 14, 2002 Scribe: Tony Wirth LZ77 CS 493: Algorithms for Massive Data Sets February 14, 2002 Dictionary-based compression Scribe: Tony Wirth This lecture will explore two adaptive dictionary compression schemes: LZ77 and LZ78. We use the

More information

CS106B Handout 34 Autumn 2012 November 12 th, 2012 Data Compression and Huffman Encoding

CS106B Handout 34 Autumn 2012 November 12 th, 2012 Data Compression and Huffman Encoding CS6B Handout 34 Autumn 22 November 2 th, 22 Data Compression and Huffman Encoding Handout written by Julie Zelenski. In the early 98s, personal computers had hard disks that were no larger than MB; today,

More information

Dictionary techniques

Dictionary techniques Dictionary techniques The final concept that we will mention in this chapter is about dictionary techniques. Many modern compression algorithms rely on the modified versions of various dictionary techniques.

More information

Data Compression Techniques

Data Compression Techniques Data Compression Techniques Part 1: Entropy Coding Lecture 1: Introduction and Huffman Coding Juha Kärkkäinen 31.10.2017 1 / 21 Introduction Data compression deals with encoding information in as few bits

More information

Data Compression Techniques

Data Compression Techniques Data Compression Techniques Part 2: Text Compression Lecture 6: Dictionary Compression Juha Kärkkäinen 15.11.2017 1 / 17 Dictionary Compression The compression techniques we have seen so far replace individual

More information

Data Compression 신찬수

Data Compression 신찬수 Data Compression 신찬수 Data compression Reducing the size of the representation without affecting the information itself. Lossless compression vs. lossy compression text file image file movie file compression

More information

An Advanced Text Encryption & Compression System Based on ASCII Values & Arithmetic Encoding to Improve Data Security

An Advanced Text Encryption & Compression System Based on ASCII Values & Arithmetic Encoding to Improve Data Security Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology IJCSMC, Vol. 3, Issue. 10, October 2014,

More information

A Comprehensive Review of Data Compression Techniques

A Comprehensive Review of Data Compression Techniques Volume-6, Issue-2, March-April 2016 International Journal of Engineering and Management Research Page Number: 684-688 A Comprehensive Review of Data Compression Techniques Palwinder Singh 1, Amarbir Singh

More information

Image Coding and Data Compression

Image Coding and Data Compression Image Coding and Data Compression Biomedical Images are of high spatial resolution and fine gray-scale quantisiation Digital mammograms: 4,096x4,096 pixels with 12bit/pixel 32MB per image Volume data (CT

More information

Image Compression - An Overview Jagroop Singh 1

Image Compression - An Overview Jagroop Singh 1 www.ijecs.in International Journal Of Engineering And Computer Science ISSN: 2319-7242 Volume 5 Issues 8 Aug 2016, Page No. 17535-17539 Image Compression - An Overview Jagroop Singh 1 1 Faculty DAV Institute

More information

International Journal of Trend in Research and Development, Volume 3(2), ISSN: A Review of Coding Techniques in the Frequency

International Journal of Trend in Research and Development, Volume 3(2), ISSN: A Review of Coding Techniques in the Frequency A Review of Coding Techniques in the Frequency Farhad Shoahosseini 1 and Shahram Jamali 2 1 Department of computer, Germi branch, Islamic Azad University, Germi, Iran 2 Associate Professor, University

More information