DOI QR코드

DOI QR Code

Rebuilding of Image Compression Algorithm Based on the DCT (discrete cosine transform)

이산코사인변환 기반 이미지 압축 알고리즘에 관한 재구성

  • Nam, Soo-Tai (Division of Information and Electronic Commerce (Institute of Convergence and Creativity), Wonkwang University) ;
  • Jin, Chan-Yong (Division of Information and Electronic Commerce (Institute of Convergence and Creativity), Wonkwang University)
  • Received : 2018.10.26
  • Accepted : 2018.11.21
  • Published : 2019.01.31

Abstract

JPEG is a most widely used standard image compression technology. This research introduces the JPEG image compression algorithm and describes each step in the compression and decompression. Image compression is the application of data compression on digital images. The DCT (discrete cosine transform) is a technique for converting a time domain to a frequency domain. First, the image is divided into 8 by 8 pixel blocks. Second, working from top to bottom left to right, the DCT is applied to each block. Third, each block is compressed through quantization. Fourth, the matrix of compressed blocks that make up the image is stored in a greatly reduced amount of space. Finally if desired, the image is reconstructed through decompression, a process using IDCT (inverse discrete cosine transform). The purpose of this research is to review all the processes of image compression / decompression using the discrete cosine transform method.

JPEG은 가장 널리 사용되는 이미지 압축 표준 기술이다. 본 논문에서는 JPEG 이미지 압축 알고리즘을 소개하고 압축 및 압축 해제의 각 단계를 서술하고자 한다. 이미지 압축은 디지털 이미지를 데이터 압축을 적용하는 과정이다. 이산코사인변환은 시간 도메인에서 주파수 도메인으로 변환하는 기술이다. 먼저, 이미지는 8 by 8 픽셀 블록으로 분할하게 된다. 둘째, 위에서 아래로 왼쪽에서 오른쪽으로 진행하면서 DCT가 각각의 블록에 적용하게 된다. 셋째, 각 블록은 양자화를 통해 압축을 진행한다. 넷째, 이미지를 구성하는 압축된 블록의 행렬은 크게 줄어든 공간에 저장된다. 끝으로, 원하는 경우 이미지는 역이산코사인변환(IDCT)을 사용하는 프로세스인 압축 해제를 통해 재구성하게 된다. 본 연구에서는 이산코사인변환 기법을 이용해 이미지 압축/복원 및 재구성하는 것에 목적을 두고 있다.

Keywords

HOJBC0_2019_v23n1_84_f0001.png 이미지

Fig. 1 Zig-Zag scanning for encoding

Table. 1 Orthogonal matrix (T) using the discrete cosine transform

HOJBC0_2019_v23n1_84_t0001.png 이미지

Table. 2 Original image matrix (O) using the discrete cosine transform

HOJBC0_2019_v23n1_84_t0002.png 이미지

Table. 3 Matrix (M) using the discrete cosine transform

HOJBC0_2019_v23n1_84_t0003.png 이미지

Table. 4 Matrix (D) calculated by the transpose matrix

HOJBC0_2019_v23n1_84_t0004.png 이미지

Table. 5 Quantization Matrix (Q50) for compression

HOJBC0_2019_v23n1_84_t0005.png 이미지

Table. 6 Quantization Matrix (Q90) for compression

HOJBC0_2019_v23n1_84_t0006.png 이미지

Table. 7 Final matrix (C) completed compression

HOJBC0_2019_v23n1_84_t0007.png 이미지

Table. 8 Matrix (R) using the inverse discrete cosine transform

HOJBC0_2019_v23n1_84_t0008.png 이미지

Table. 9 Original image used for compression

HOJBC0_2019_v23n1_84_t0009.png 이미지

Table. 10 Image matrix reconstructed by the inverse discrete cosine transform

HOJBC0_2019_v23n1_84_t0010.png 이미지

References

  1. W. Ekta, J. Payal and N. Navdeep, "An Analysis of LSB and DCT based Steganography," Global Journal of Computer Science and Technology, vol. 10, no. 1, pp. 4-8, Apr. 2010.
  2. Y. K. Shin and T. W. Lee, "Design and Implementation of DCT (Discrete Cosine Transform) Processor Using Distributed Arithmetic Algorithm," Collected Papers of Sorabol College, vol. 22, no. 1, pp. 179-191, Jan. 2004.
  3. M. Gupta, and A. K. Garg, "Analysis Of Image Compression Algorithm Using DCT," International Journal of Engineering Research and Applications, vol. 2, no. 1, pp. 514-521, Jan. 2012.
  4. E. A. Kaushik, and E. D. Nain, "Image Compression Algorithms Using Dct," International Journal of Engineering Research and Applications, vol. 4, no. 4, pp. 357-364, Apr. 2014.
  5. A. J. MAAN, "An Introduction to JPEG Image Compression Algorithm," International Journal of Electrical, Electronics and Data Communication, vol. 1, no. 10, pp. 44-46, Dec. 2013.
  6. S. H. Kim, "An Orthogonal Approximate DCT for Fast Image Compression," Journal of the Korea Institute of Information and Communication Engineering, vol. 19, no. 10, pp. 2403-2408, Oct. 2015. https://doi.org/10.6109/jkiice.2015.19.10.2403
  7. Y. Devi, "JPEG Image Compression Using Various Algorithms: A Review," International Journal of Computer Science Trends and Technology, vol. 4, no. 3, pp. 89-92, May 2016.
  8. D. J. Kim, and P. L. Manjusha, "Building Detection in High Resolution Remotely Sensed Images based on Automatic Histogram-Based Fuzzy C-Means Algorithm," Asia-pacific Journal of Convergent Research Interchange, vol. 3, no. 1, pp. 57-62, Mar. 2017. https://doi.org/10.21742/apjcri.2017.12.11
  9. S. T. Nam, D. G., and J. C. Jin "A Comparison Analysis among Structural Equation Modeling (AMOS, LISREL and PLS) Using the Same Data," Journal of the Korea Institute of Information and Communication Engineering, vol. 22, no. 7, pp. 978-984, Jul. 2018. https://doi.org/10.6109/JKIICE.2018.22.7.978