NCHU1 The LOCO-I Lossless image Compression Algorithm: Principles and Standardization into JPEG-LS Authors: M. J. Weinberger, G. Seroussi, G. Sapiro Source.

Slides:



Advertisements
Similar presentations
The Lossless JPEG standard y=(a+b)/2 = 145 r= =-35 Category (r) = 6, Magnitude (r) = ’s complement of cat (r) = Rep(35)={6,011100}
Advertisements

MPEG4 Natural Video Coding Functionalities: –Coding of arbitrary shaped objects –Efficient compression of video and images over wide range of bit rates.
DCC ‘99 - Adaptive Prediction Lossless Image Coding Adaptive Linear Prediction Lossless Image Coding Giovanni Motta, James A. Storer Brandeis University.
T h e U n i v e r s i t y o f B r i t i s h C o l u m b i a Bi-Level Image Compression EECE 545: Data Compression by Dave Tompkins.
1 Outline  Introduction to JEPG2000  Why another image compression technique  Features  Discrete Wavelet Transform  Wavelet transform  Wavelet implementation.
CABAC Based Bit Estimation for Fast H.264 RD Optimization Decision
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems
Department of Computer Engineering University of California at Santa Cruz Data Compression (3) Hai Tao.
2015/6/15VLC 2006 PART 1 Introduction on Video Coding StandardsVLC 2006 PART 1 Variable Length Coding  Information entropy  Huffman code vs. arithmetic.
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.
Context-Based Adaptive Binary Arithmetic Coding in the H.264/AVC Video Compression Standard Detlev Marpe, Heiko Schwarz, and Thomas Wiegand IEEE Transactions.
SWE 423: Multimedia Systems Chapter 7: Data Compression (2)
Losslessy Compression of Multimedia Data Hao Jiang Computer Science Department Sept. 25, 2007.
Image (and Video) Coding and Processing Lecture: DCT Compression and JPEG Wade Trappe Again: Thanks to Min Wu for allowing me to borrow many of her slides.
1 A Unified Rate-Distortion Analysis Framework for Transform Coding Student : Ho-Chang Wu Student : Ho-Chang Wu Advisor : Prof. David W. Lin Advisor :
Fundamentals of Multimedia Chapter 7 Lossless Compression Algorithms Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
IMPROVING THE PERFORMANCE OF JPEG-LS Michael Syme Supervisor: Dr. Peter Tischer.
2015/7/12VLC 2008 PART 1 Introduction on Video Coding StandardsVLC 2008 PART 1 Variable Length Coding  Information entropy  Huffman code vs. arithmetic.
Data Compression Basics & Huffman Coding
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
Basics of Compression Goals: to understand how image/audio/video signals are compressed to save storage and increase transmission efficiency to understand.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
1 Lossless DNA Microarray Image Compression Source: Thirty-Seventh Asilomar Conference on Signals, Systems and Computers, Vol. 2, Nov. 2003, pp
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2011.
Concepts of Multimedia Processing and Transmission IT 481, Lecture 5 Dennis McCaughey, Ph.D. 19 February, 2007.
1 Hiding Data in Images by Simple LSB Substitution Source: Pattern Recognition, Vol. 37, pp , 2004 Authors: Chi-Kwong Chan and L.M. Cheng Speaker:
JPEG. The JPEG Standard JPEG is an image compression standard which was accepted as an international standard in  Developed by the Joint Photographic.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
Context-based, Adaptive, Lossless Image Coding (CALIC) Authors: Xiaolin Wu and Nasir Memon Source: IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 45, NO. 4,
JPEG CIS 658 Fall 2005.
1 Embedding Compression in Chaos- Based Cryptography 嵌入壓縮功能到混亂加密法 IEEE Transactions on Circuits and Systems—II: Express Briefs, VOL. 55, NO. 11, NOV
Improvements to the JPEG-LS prediction scheme Authors: S. Bedi, E. A. Edirisinghe, and G. Grecos Source : Image and Vision Computing. Vol. 22, No. 1, 2004,
Lossless Compression CIS 465 Multimedia. Compression Compression: the process of coding that will effectively reduce the total number of bits needed to.
Chapter 9 Image Compression Standards 9.1 The JPEG Standard 9.2 The JPEG2000 Standard 9.3 The JPEG-LS Standard 9.5 Further Exploration Li & Drew1.
Fractal Video Compression 碎形視訊壓縮方法 Chia-Yuan Chang 張嘉元 Department of Applied Mathematics National Sun Yat-Sen University Kaohsiung, Taiwan.
1 A Gradient Based Predictive Coding for Lossless Image Compression Source: IEICE Transactions on Information and Systems, Vol. E89-D, No. 7, July 2006.
Advances in digital image compression techniques Guojun Lu, Computer Communications, Vol. 16, No. 4, Apr, 1993, pp
Fast motion estimation and mode decision for H.264 video coding in packet loss environment Li Liu, Xinhua Zhuang Computer Science Department, University.
Lecture 4: Lossless Compression(1) Hongli Luo Fall 2011.
1 A JPEG-LS Based Lossless/Lossy Compression Method for Two-Dimensional Electrophoresis Images Source: 2003 International Conference on Informatics, Cybernetics,
CS654: Digital Image Analysis Lecture 34: Different Coding Techniques.
JPEG Image Compression Standard Introduction Lossless and Lossy Coding Schemes JPEG Standard Details Summary.
JPEG.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 7 – Basics of Compression (Part 2) Klara Nahrstedt Spring 2012.
1 Reversible visible watermarking and lossless recovery of original images Source: IEEE transactions on circuits and systems for video technology, vol.
1 Security of fragile watermarking scheme for image authentication Authors: K. C. Liao, W. B. Lee, and C. W. Liao Source: The Imaging Science Journal,
Information theory Data compression perspective Pasi Fränti
Introduction to H.264 / AVC Video Coding Standard Multimedia Systems Sharif University of Technology November 2008.
Advisor: Chang, Chin-Chen Student: Chen, Chang-Chu
IMAGE PROCESSING IMAGE COMPRESSION
Assignment 6: Huffman Code Generation
FHTW Wavelet Based Video Compression Using Long Term Memory Motion-Compensated Prediction and Context-based Adaptive Arithmetic Coding D.Marpe, H.L.Cycon,
JPEG.
Huffman Coding, Arithmetic Coding, and JBIG2
Lossy Compression of DNA Microarray Images
Context-based Data Compression
2018/9/16 Distributed Source Coding Using Syndromes (DISCUS): Design and Construction S.Sandeep Pradhan, Kannan Ramchandran IEEE Transactions on Information.
Source : Signal Processing, Volume 133, April 2017, Pages
Source :Journal of visual Communication and Image Representation
New Framework of Reversible Data Hiding in Encrypted JPEG Bitstreams
UNIT IV.
MPEG4 Natural Video Coding
Source: Signal Processing: Image Communication 64 (2018) 78-88
An Algorithm for Compression of Bilevel Images
New Framework for Reversible Data Hiding in Encrypted Domain
Source: IEEE Transactions on Circuits and Systems,
Context-based, Adaptive, Lossless Image Coding (CALIC)
Presentation transcript:

NCHU1 The LOCO-I Lossless image Compression Algorithm: Principles and Standardization into JPEG-LS Authors: M. J. Weinberger, G. Seroussi, G. Sapiro Source : IEEE Transactions on Image Processing, Vol. 9, No. 8, August 2000, Speaker: Chia-Chun Wu ( 吳佳駿 ) Date : 2004/10/20

NCHU2 Outline 1. IntroductionIntroduction 2. ExampleExample 3. ModelerModeler 4. Regular modeRegular mode 5. Run modeRun mode 6. Coded dataCoded data 7. ResultResult 8. ConclusionConclusion 9. CommentsComments

NCHU3 1. Introduction (1/2) LOCO-I (LOw COmplexity LOssless COmpression for Image) is the standard for lossless and near-lossless compression of continuous-tone images, such as JPEG-LS.

NCHU4 1. Introduction (2/2) Fig.1 JPEG-LS : Block diagram …

NCHU5 2. Example Fig.2 4 x 4 Example image data Inde x 補 0補 0 RcRbRd RaIx

NCHU6 3. Modeler 3.1 Compute local gradientsCompute local gradients 3.2 Local gradient quantizationLocal gradient quantization 3.3 Quantized gradient mergingQuantized gradient merging 3.4 Select the modeSelect the mode

NCHU7 3.1 Compute local gradients Ix is the value of current sample in the image. Three gradients g 1, g 2, g 3. g 1 = Rd – Rb g 2 = Rb – Rc g 3 = Rc – Ra Example 1 Example 2 RcRbRd RaIx (g1,g2,g3)=( 0,81,-36) (g1,g2,g3)=( 0, 0, 0)

NCHU8 3.2 Local gradient quantization Q1, Q2, Q3 are region numbers of quantized local gradients. Example 1 Example 2 g i ( i = 1 to 3 ) Q i ( i = 1 to 3 ) {0} 0 ± {1,2} ± 1 ± {3,4,5,6} ± 2 ± {7,8,...,20} ± 3 ± { ≧ 21} ± 4 (g 1,g 2,g 3 ) ⇒ (Q 1,Q 2,Q 3 ) (g 1, g 2, g 3 )=( 0,81,-36) ⇒ (Q 1,Q 2,Q 3 )=( 0, 4, -4) (g 1, g 2, g 3 )=( 0, 0, 0) ⇒ (Q 1,Q 2,Q 3 )=( 0, 0, 0)

NCHU9 3.3 Quantized gradient merging If the first non-zero element of vector (Q 1,Q 2,Q 3 ) is negative, then (Q 1,Q 2,Q 3 ) ⇒ (-Q 1,-Q 2,-Q 3 ) and SIGN set to – 1, otherwise it set to +1. Example 1 Example 2 Q1Q1 Q2Q2 Q3Q Q1Q1 Q2Q2 Q3Q3 SIGN (Q 1, Q 2, Q 3 )=( 0, 4, -4) ⇒ SIGN = +1 (Q 1, Q 2, Q 3 )=( 0, 0, 0) ⇒ SIGN = +1

NCHU Select the mode If quantized local gradients are not all zero, choose the regular mode.regular mode If Q 1 =Q 2 =Q 3 =0, go to the run mode.run mode Example 1 Example 2 (Q 1, Q 2, Q 3 )=( 0, 4, -4) ⇒ Reqular mode (Q 1, Q 2, Q 3 )=( 0, 0, 0) ⇒ Run mode

NCHU11 4. Regular model 4.1 Compute the fixed predictionCompute the fixed prediction 4.2 Adaptive correctionAdaptive correction 4.3 Compute the prediction errorCompute the prediction error 4.4 Modulo reduction of the errorModulo reduction of the error 4.5 Error mappingError mapping 4.6 Compute the Golomb coding parameter k Compute the Golomb coding parameter k 4.7 Golomb CodeGolomb Code 4.8 Mapped-error encodingMapped-error encoding 4.9 Update the variablesUpdate the variables

NCHU Compute the fixed prediction Ra, Rb, Rc used to predict Ix. Px is predicted value for the sample Ix. Example 1 min(Ra,Rb), if Rc ≧ max(Ra,Rb). max(Ra,Rb), if Rc ≦ min(Ra,Rb). Ra+Rb–Rc, otherwise. { Px = Rc=64Rb=145Rd=145 Ra=100Ix=145 Rc = 64 ≦ min(100,145) ≦ 100 ⇒ Px = max(100,145) = 145

NCHU Adaptive correction C =, C is the prediction of correction value. Example 1 B = -1, N = 2 ⇒ C = = -1 Px + C, if SIGN = +1. Px ─ C, if SIGN = ─1. { Px = [ ] 2 [ ] B N To P23 Px = 145, SIGN = +1 ⇒ Px = Px + C = (-1) = 144

NCHU Compute the prediction error Errval is the prediction error. Example 1 1. Errval = Ix – Px. 2. Errval = ─ Errval, if SIGN = ─1. ⇒ Errval = Ix - Px = 145 ─ 144 = 1 Ix = 145 Px = 144 SIGN = +1

NCHU Modulo reduction of the error The prediction error will be reduced to the range relevant for coding,-127~+128. Example 1 1. Errval = Errval + 256, if Errval < Errval = Errval ─ 256, if Errval ≧ 128. Errval = 1 (1 > 0 and 1 ≦ 128) ⇒ Errval = 1

NCHU Error mapping (1/2) The prediction error, Errval will be mapped to a non-negative value. MErrval is the Errval mapped to non-negative integers in regular mode. Example 1 2*Errval, if Errval ≧ 0. ─2*Errval-1, if Errval < 0. { MErrval = Errval = 1 (1 ≧ 0) ⇒ MErrval = 2 * 1 = 2

NCHU Error mapping (2/2) Prediction error … ↓ ↓ ↓ ↓ ↓↓ ↓ ↓ ↓ … Mapped value

NCHU Compute the Golomb coding parameter k K is the Golomb coding parameter for regular mode. k = min {k ’ |2 k ’ * N ≧ A} Example 1 N = 2, A = 64 ⇒ 2 k ’ * 2 ≧ 64 ⇒ 2 k ’ ≧ 32 ⇒ k = 5

NCHU Golomb Code (1/3) A formula : MErrval = q * m + r A parameter : m (m = 2 k ) Two parts : unary code (q) and modified binary code (r) Example : MErrval = 13, k = 2 ⇒ m = 2 2 = 4 ⇒ 13 = 3 x ⇒ q = 3, r = 1 ⇒ unary code=3, modified binary code=1 ⇒ unary code=000, modified binary code=01 ⇒

NCHU Golomb Code (2/3) nqrCodewordnqr Table. Ⅰ Golomb code for m = 4 (k=2).

NCHU Golomb Code (3/3) Properties - n↓ ⇒ code length↓ - one pass encoding - without to store the code tables - Golomb code are optimal for one sided geometric distributions of nonnegative integers 255 0

NCHU Mapped-error encoding Example 1 k = 5 ⇒ m = 2 k = 2 5 = 32 MErrval = 2 ⇒ 2 = q * m + r = 0 * ⇒ q = 0, r = 2 ⇒ unary code= 0, modified binary code=2 ⇒ unary code= null, modified binary code=00010 ⇒

NCHU Update the variables (1/2) The variables A, B and N are updated according to the current prediction error. A, B are counters for the accumulated prediction error. N is counter for frequency of occurrence of the context.{ A = A + | Errval | B = B + Errval N = N + 1

NCHU Update the variables (2/2) The variables before encoding are : A = 64, B = -1, N = 2. The variables after updating are : Example 1: Errval = 1 ⇒ A = A + | Errval | = = 65. B = B + Errval = = 0. N = N + 1 = = 3. To P13

NCHU25 5. Run model 5.1 Run scanningRun scanning 5.2 Run-length codingRun-length coding

NCHU Run scanning RUNval is the value of repetitived sample. RUNcnt is the value of repetitived sample count for run mode. Example 2 RUNval = Ra = 145 Ix = 145 = RUNval ⇒ RUNcnt = { RUNval = Ra; while (Ix == RUNval) { RUNcnt = RUNcnt + 1; }

NCHU Run-length coding RUNcnt is the value represents the run- length. Example 2 RUNcnt = 2 ⇒ 11 { while (RUNcnt >0) { Append 1 to bit stream; RUNcnt = RUNcnt ─ 1; }

NCHU28 6. Coded data BinaryHexadecimal C C E C E E BC D Table. Ⅱ Coded segment. PS:The last five bits in the above table are padding with 0.

NCHU29 7. Results (1/2) ImageLOCO-IJPEG-LS Balloon Barb Barb Board Boats3.34 Girl Gold Hotel Zelda3.35 Average Table Ⅲ Compression Results On ISO/IEC Image Test Set (In Bits/Sample)

NCHU30 7. Results (2/2) ImageLOCO-IJPEG-LS Lossless JPEG Huffman Lossless JPEG arithm CALIC arithm LOCO-A (arithm) bike cafe woman tools bike cats water finger us chart chart_s compound compound aerial Faxballs Gold hotel Average Table Ⅳ Compression Results On New Image Test Set (In Bits/Sample)

NCHU31 8. Conclusion LOCO-I/JPEG-LS significantly outperforms other schemes of comparable complexity (e.g.,JPEG-Huffman), and it attains compression rations similar or superior to those of higher complexity schemes based on arithmetic coding (e.g.,JPEG-Arithm, CALIC Arithm). LOCO-I performed within a few percentage points of the best available compression ratios (given, in practice, by CALIC), at a much lower complexity level.

NCHU32 9. Comments 找出一個方法去修改 JPEG-LS 的壓縮演算法, 使其具有資訊隱藏的功能。

NCHU33 The end Thank you!!