Presentation is loading. Please wait.

Presentation is loading. Please wait.

IMPLEMENTATION AND PERFOMANCE ANALYSIS OF H.264 INTRA FRAME CODING, JPEG, JPEG-LS, JPEG-2000 AND JPEG-XR 1 EE 5359 Multimedia Project Amee Solanki (1000740226)

Similar presentations


Presentation on theme: "IMPLEMENTATION AND PERFOMANCE ANALYSIS OF H.264 INTRA FRAME CODING, JPEG, JPEG-LS, JPEG-2000 AND JPEG-XR 1 EE 5359 Multimedia Project Amee Solanki (1000740226)"— Presentation transcript:

1 IMPLEMENTATION AND PERFOMANCE ANALYSIS OF H.264 INTRA FRAME CODING, JPEG, JPEG-LS, JPEG-2000 AND JPEG-XR 1 EE 5359 Multimedia Project Amee Solanki (1000740226) amee.solanki@mavs.uta.edu

2 Image Compression 2 Compression is the process of compacting data, reducing the number of bits. Reduce redundancy of the image or video data in order to be able to store or transmit data in an efficient form. Fig.1 Comparison of original coronary angiogram (left) with two compression results. Middle: JPEG data compression by factor of CR=12, Right: factor of CR=24[14].

3 Two Types of Compression 3 Lossless compression: There is no information loss, and the image can be reconstructed exactly the same as the original Applications: medical imagery, archiving Lossy compression: Information loss is tolerable. Applications: commercial distribution (DVD) and rate constrained environment where lossless methods cannot provide enough compression ratio

4 Evolution of Image Compression Standards 4 Fig.2 Evolution of compression technology[15]

5 Compression standards 5 StandardSoftwareMain ApplicationYear JPEGJPEG-Baseline Ref.Image1992-1999 JPEG-LSJPEG-LS DLL *DLL-Dynamic linked library Image1999-2000 JPEG-2000JasPerImage2000 JPEG-XRJPEG-XR Ref.Image2009 H.264/AVC Intra Coding JMVideo2003 Table 1: Comparison of image compression standards[13]

6 JPEG Standards 6

7 Baseline JPEG Encoder and Decoder 7 Fig.2 JPEG encoder block diagram [1] Fig.3 JPEG decoder block diagram [1]

8 JPEG 2000 Encoder and Decoder 8 Fig. 4 (a) Encoder block diagram (b) Decoder block diagram of JPEG 2000 [2]

9 JPEG and JPEG-2000 9 StandardCompression ratio Main Compression Technologies Main Target Applications JPEGCompression ratio 2-30 -DCT -Perceptual quantization -Zig zag reordering -Huffman coding -Arithmetic coding -Internet imaging -Digital photography -Image and video editing JPEG-2000Compression ratio 2-50 -Wavelets EBCOT-Internet imaging -Digital photography -Image and video Editing -Printing -Medical imaging -Mobile applications -Color fax -Satellite imaging Table 2: Comparison of JPEG and JPEG 2000 [13]

10 JPEG-LS and JPEG-XR 10 StandardCompression ratioMain Compression Technologies Main Target Applications JPEG-LSCompression Ratio 2:1 -Context Modeling -Prediction -Golomb Codes -Arithmetic coding - Lossless and near lossless coding of continuous tone still images JPEG-XRHigher compression ratio than JPEG Based on HD Photo of Microsoft (Windows Media Photo) -Storage and interchange of continuous tone photographic content (lossless and lossy ) Table 3: Comparison of JPEG-LS and JPEG-XR [13]

11 H.264/AVC(Advanced Video Coding) Standard 11

12 H.264 Basics 12 H.264/AVC compression video coding is based on the traditional hybrid concept of block-based motion-compensated prediction (MCP) and transform coding In order to improve the compression efficiency of intra-only compression, the following two coding tools provide major contributions to the significant bit rate savings: Entropy encoding improvement, CAVLC and CABAC Spatial intra prediction conducted by using spatially neighboring samples of a target block which have been previously coded.

13 13 Fig.4 Examples of spatial intra prediction modes for (8X8) blocks [15] Spatial Intra prediction [15] H.264/AVC uses both spatial and temporal predictions to increase its coding gain. The intra-only compression uses spatial prediction and the prediction only occurs within a slice

14 14 Fig. 5 A 4X4 block and its neighboring pixels[16] Fig. 6 Direction of 9 4X4 intra-prediction [16] Fig. 5 shows a 4x4 block containing 16 pixels labeled from a through p. A prediction block p is calculated based on the pixels labeled A-M obtained from the neighboring blocks. A prediction mode is a way to generate these 16 predictive pixel values using some or all of the neighboring pixels in nine different directions as shown in Fig. 6. In some cases, not all of the samples A-M are available within the current slice. In order to preserve independent decoding of slices, only samples within the current slice are used for prediction.

15 15 Fig.7 Examples of spatial intra prediction modes for (4X4) blocks[16] 1.Mode 0 is the vertical prediction mode in which pixels a, e, i, and m are predicted by A and so on. 2.Mode 1 is the horizontal prediction mode in which pixels a,b, c, and d are predicted by I and so on. 3.Mode 2 is called DC prediction in which all pixels i.e. (a to p) as shown in fig. 5 are predicted by (A+B+C+D+I+J+K+L)/8. 4.For modes 3-8, the predicted samples are formed from a weighted average of the prediction samples A-M.

16 H.264 Basic Encoder and Decoder 16 Fig.8 H.264 Encoder and decoder block diagrams [3]

17 Compressed Image Quality Measures 17 Criteria to evaluate a compressed image are as follows : 1. Compression ratio 2. Bit-rate (bandwidth) 3. Objective quality measure- PSNR, MSE (quality of compressed image) 4. Structural quality measure- SSIM

18 PSNR and MSE 18 Peak signal-to-noise ratio, often abbreviated PSNR, is the ratio between the maximum possible power of a signal and the power of corrupting noise that affects the fidelity of its representation MSE and PSNR for a NxM pixel image are defined as (1) (2) where x is the original image and y is the reconstructed image. M and N are the width and height of an image and ‘L’ is the maximum pixel value in the NxM pixel image

19 Structural Similarity Index 19 The structural similarity (SSIM) [17] index is a method for measuring the similarity between two images SSIM is designed to improve on traditional methods like peak signal-to-noise ratio (PSNR) and mean squared error (MSE), which have proved to be inconsistent with human eye perception SSIM considers image degradation as perceived change in structural information. Structural information is the idea that the pixels have strong inter-dependencies especially when they are spatially close

20 SSIM Metric [17] 20 where x and y correspond to two different signals that need to be compared, i.e. two different blocks in two separate images ;

21 Example with SSIM index 21 Fig. 9 SSIM Index example [4]

22 TABLE OF ACRONYMS 22 AVCadvanced video coding BMPbit map format CABACcontext adaptive binary arithmetic coding DCTdiscrete cosine transform EBCOTembedded block coding with optimized truncation FRExtfidelity range extensions GIFgraphics interchange format HD-photohigh-definition photo HVShuman visual system I-frameintra frame JMjoint model JPEGjoint photographic experts group JPEG-LSjoint photographic experts group lossless and lossless coding JPEG-XRjoint photographic experts group extended range LBTlapped bi-orthogonal transform LOCO-Ilow complexity lossless compression for images MSEmean square error PSNRpeak signal to noise ratio SSIMstructural similarity index VLCvariable length coding

23 References 23 [1] JPEG Encoder and Decoder block diagram : http://www.cmlab.csie.ntu.edu.tw/cml/dsp/training/coding/jpeg/jpeg/decoder.htm http://www.cmlab.csie.ntu.edu.tw/cml/dsp/training/coding/jpeg/jpeg/decoder.htm [2] JPEG2000 Encoder and Decoder block diagram : http://eeweb.poly.edu/~yao/EE3414/JPEG.pdf http://eeweb.poly.edu/~yao/EE3414/JPEG.pdf [3] H.264 Encoder and Decoder block diagram : http://www.drtonygeorge.com/video_codec.htm http://www.drtonygeorge.com/video_codec.htm [4] SSIM Index example diagram: https://ece.uwaterloo.ca/~z70wang/research/ssim/ https://ece.uwaterloo.ca/~z70wang/research/ssim/ [5] H.264/AVC reference software (JM 17.2) website: http://iphome.hhi.de/suehring/tml/download/ http://iphome.hhi.de/suehring/tml/download/ [6] JPEG2000 latest reference software (Jasper Version 1.900.0) website: http://www.ece.uvic.ca/~mdadams/jasper/ http://www.ece.uvic.ca/~mdadams/jasper/ [7] JPEG reference software website: ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/jpegsr6.zip ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/jpegsr6.zip [8] JPEG-LS reference software website: http://www.hpl.hp.com/loco/http://www.hpl.hp.com/loco/

24 24 [9] T. Wiegand, G. J. Sullivan, G. Bjontegaard and A. Luthra,” Overview of the H.264 / AVC video coding standard ” IEEE Trans. on Circuits and Systems for Video Technology,vol. 13, pp. 560-576, July 2003. [10] A.Skodras, C. Christopoulos and T. Ebrahimi, “The JPEG 2000 still image compression standard”, IEEE Trans. on Signal Processing, vol.18, pp. 36 - 58, Aug 2002. [11] M. J. Weinberger, G. Seroussi and G. Sapiro, “The LOCO-I lossless image compression algorithm: principles and standardization into JPEG-LS”, IEEE Trans. on Image Processing, vol.9, pp.1309-1324, Aug. 2000 [12] C. Christopoulos, A. Skodras and T.Ebrahimi, “The JPEG2000 still image coding system: an overview”, IEEE Trans. on Consumer Electronics, vol.46, pp.1103-1127, Nov. 2000. [13] T. Ebrahimi and M. Kunt, “ Visual data compression for multimedia applications”, Proc IEEE, vol.86, pp. 1109-1125, June 1998.

25 25 [14] Image compression test image: http://www.uni-kiel.de/Kardiologie/dicom/1999/compression1.html.http://www.uni-kiel.de/Kardiologie/dicom/1999/compression1.html [15] Evolution of image compression standards : ftp://ftp.panasonic.com/pub/panasonic/drivers/PBTS/papers/WP_AVC-Intra.pdf [16] Intra-prediction modes image: http://www.atc-labs.com/technology/h264_publication_1.pdf [17] Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, “Image quality assessment: From error visibility to structural similarity,” IEEE Trans. on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004. [18] I. E. Richardson, “The H.264 advanced video compression standard”, II Edition, Wiley, 2010. [19] D. S. Taubman and M. W. Marcellin, "JPEG2000 – Image compression fundamentals, standards, and practice," Kluwer, 2001.


Download ppt "IMPLEMENTATION AND PERFOMANCE ANALYSIS OF H.264 INTRA FRAME CODING, JPEG, JPEG-LS, JPEG-2000 AND JPEG-XR 1 EE 5359 Multimedia Project Amee Solanki (1000740226)"

Similar presentations


Ads by Google