Share to: share facebook share twitter share wa share telegram print page

Image compression

Image compression is a type of data compression applied to digital images, to reduce their cost for storage or transmission. Algorithms may take advantage of visual perception and the statistical properties of image data to provide superior results compared with generic data compression methods which are used for other digital data.[1]

Comparison of JPEG images saved by Adobe Photoshop at different quality levels and with or without "save for web"

Lossy and lossless image compression

Image compression may be lossy or lossless. Lossless compression is preferred for archival purposes and often for medical imaging, technical drawings, clip art, or comics. Lossy compression methods, especially when used at low bit rates, introduce compression artifacts. Lossy methods are especially suitable for natural images such as photographs in applications where minor (sometimes imperceptible) loss of fidelity is acceptable to achieve a substantial reduction in bit rate. Lossy compression that produces negligible differences may be called visually lossless.

Methods for lossy compression:

Methods for lossless compression:

Other properties

The best image quality at a given compression rate (or bit rate) is the main goal of image compression, however, there are other important properties of image compression schemes:

Scalability generally refers to a quality reduction achieved by manipulation of the bitstream or file (without decompression and re-compression). Other names for scalability are progressive coding or embedded bitstreams. Despite its contrary nature, scalability also may be found in lossless codecs, usually in form of coarse-to-fine pixel scans. Scalability is especially useful for previewing images while downloading them (e.g., in a web browser) or for providing variable quality access to e.g., databases. There are several types of scalability:

  • Quality progressive or layer progressive: The bitstream successively refines the reconstructed image.
  • Resolution progressive: First encode a lower image resolution; then encode the difference to higher resolutions.[6][7]
  • Component progressive: First encode grey-scale version; then adding full color.

Region of interest coding. Certain parts of the image are encoded with higher quality than others. This may be combined with scalability (encode these parts first, others later).

Meta information. Compressed data may contain information about the image which may be used to categorize, search, or browse images. Such information may include color and texture statistics, small preview images, and author or copyright information.

Processing power. Compression algorithms require different amounts of processing power to encode and decode. Some high compression algorithms require high processing power.

The quality of a compression method often is measured by the peak signal-to-noise ratio. It measures the amount of noise introduced through a lossy compression of the image, however, the subjective judgment of the viewer also is regarded as an important measure, perhaps, being the most important measure.

History

Entropy coding started in the late 1940s with the introduction of Shannon–Fano coding,[8] the basis for Huffman coding which was published in 1952.[9] Transform coding dates back to the late 1960s, with the introduction of fast Fourier transform (FFT) coding in 1968 and the Hadamard transform in 1969.[10]

An important development in image data compression was the discrete cosine transform (DCT), a lossy compression technique first proposed by Nasir Ahmed, T. Natarajan and K. R. Rao in 1973.[11] JPEG was introduced by the Joint Photographic Experts Group (JPEG) in 1992.[12] JPEG compresses images down to much smaller file sizes, and has become the most widely used image file format.[13] JPEG was largely responsible for the wide proliferation of digital images and digital photos,[14] with several billion JPEG images produced every day as of 2015.[15]

Lempel–Ziv–Welch (LZW) is a lossless compression algorithm developed by Abraham Lempel, Jacob Ziv and Terry Welch in 1984. It is used in the GIF format, introduced in 1987.[16] DEFLATE, a lossless compression algorithm developed by Phil Katz and specified in 1996, is used in the Portable Network Graphics (PNG) format.[17]

The JPEG 2000 standard was developed from 1997 to 2000 by a JPEG committee chaired by Touradj Ebrahimi (later the JPEG president).[18] In contrast to the DCT algorithm used by the original JPEG format, JPEG 2000 instead uses discrete wavelet transform (DWT) algorithms. It uses the CDF 9/7 wavelet transform (developed by Ingrid Daubechies in 1992) for its lossy compression algorithm,[19] and the Le Gall–Tabatabai (LGT) 5/3 wavelet transform[20][21] (developed by Didier Le Gall and Ali J. Tabatabai in 1988)[22] for its lossless compression algorithm.[19] JPEG 2000 technology, which includes the Motion JPEG 2000 extension, was selected as the video coding standard for digital cinema in 2004.[23]

Huffman Coding

Huffman coding is a fundamental technique used in image compression algorithms to achieve efficient data representation. Named after its inventor David A. Huffman, this method is widely employed in various image compression standards such as JPEG and PNG.

Principle of Huffman Coding

Huffman coding is a form of entropy encoding that assigns variable-length codes to input symbols based on their frequencies of occurrence. The basic principle is to assign shorter codes to more frequently occurring symbols and longer codes to less frequent symbols, thereby reducing the average code length compared to fixed-length codes.

Application in Image Compression

In image compression, Huffman coding is typically applied after other transformations like Discrete Cosine Transform (DCT) in the case of JPEG compression. After transforming the image data into a frequency domain representation, Huffman coding is used to encode the transformed coefficients efficiently.

Steps in Huffman Coding for Image Compression

  1. Frequency Analysis: Calculate the frequency of occurrence of each symbol or symbol combination in the transformed image data.
  2. Constructing the Huffman Tree: Build a Huffman tree based on the symbol frequencies. The tree is constructed recursively by combining the nodes with the lowest frequencies until a single root node is formed.
  3. Assigning Codewords: Traverse the Huffman tree to assign variable-length codewords to each symbol, with shorter codewords assigned to more frequent symbols.
  4. Encoding: Replace the original symbols in the image data with their corresponding Huffman codewords to generate the compressed data stream.

Benefits of Huffman Coding in Image Compression

  • Lossless Compression: Huffman coding can be used in both lossy and lossless image compression techniques, providing flexibility in balancing between compression ratio and image quality.
  • Efficiency: By assigning shorter codes to frequently occurring symbols, Huffman coding reduces the average code length, resulting in efficient data representation and reduced storage requirements.
  • Compatibility: Huffman coding is widely supported and can be seamlessly integrated into existing image compression standards and algorithms.

Conclusion

Huffman coding plays a crucial role in image compression by efficiently encoding image data into a compact representation. Its ability to adaptively assign variable-length codewords based on symbol frequencies makes it an essential component in modern image compression techniques, contributing to the reduction of storage space and transmission bandwidth while maintaining image quality.

Notes and references

  1. ^ "Image Data Compression".
  2. ^ Ahmed, N.; Natarajan, T.; Rao, K.R. (1974). "Discrete Cosine Transform" (PDF). IEEE Transactions on Computers: 90–93. doi:10.1109/T-C.1974.223784. S2CID 149806273. Archived from the original (PDF) on 2011-11-25.
  3. ^ Gilad David Maayan (Nov 24, 2021). "AI-Based Image Compression: The State of the Art". Towards Data Science. Retrieved 6 April 2023.
  4. ^ "High-Fidelity Generative Image Compression". Retrieved 6 April 2023.
  5. ^ Bühlmann, Matthias (2022-09-28). "Stable Diffusion Based Image Compression". Medium. Retrieved 2022-11-02.
  6. ^ Burt, P.; Adelson, E. (1 April 1983). "The Laplacian Pyramid as a Compact Image Code". IEEE Transactions on Communications. 31 (4): 532–540. CiteSeerX 10.1.1.54.299. doi:10.1109/TCOM.1983.1095851. S2CID 8018433.
  7. ^ Shao, Dan; Kropatsch, Walter G. (February 3–5, 2010). Špaček, Libor; Franc, Vojtěch (eds.). "Irregular Laplacian Graph Pyramid" (PDF). Computer Vision Winter Workshop 2010. Nové Hrady, Czech Republic: Czech Pattern Recognition Society. Archived (PDF) from the original on 2013-05-27.
  8. ^ Claude Elwood Shannon (1948). Alcatel-Lucent (ed.). "A Mathematical Theory of Communication" (PDF). Bell System Technical Journal. 27 (3–4): 379–423, 623–656. doi:10.1002/j.1538-7305.1948.tb01338.x. hdl:11858/00-001M-0000-002C-4314-2. Archived (PDF) from the original on 2011-05-24. Retrieved 2019-04-21.
  9. ^ David Albert Huffman (September 1952), "A method for the construction of minimum-redundancy codes" (PDF), Proceedings of the IRE, vol. 40, no. 9, pp. 1098–1101, doi:10.1109/JRPROC.1952.273898, archived (PDF) from the original on 2005-10-08
  10. ^ Pratt, W.K.; Kane, J.; Andrews, H.C. (1969). "Hadamard transform image coding". Proceedings of the IEEE. 57: 58–68. doi:10.1109/PROC.1969.6869.
  11. ^ Ahmed, Nasir (January 1991). "How I Came Up With the Discrete Cosine Transform". Digital Signal Processing. 1 (1): 4–5. Bibcode:1991DSP.....1....4A. doi:10.1016/1051-2004(91)90086-Z.
  12. ^ "T.81 – DIGITAL COMPRESSION AND CODING OF CONTINUOUS-TONE STILL IMAGES – REQUIREMENTS AND GUIDELINES" (PDF). CCITT. September 1992. Archived (PDF) from the original on 2000-08-18. Retrieved 12 July 2019.
  13. ^ "The JPEG image format explained". BT.com. BT Group. 31 May 2018. Retrieved 5 August 2019.
  14. ^ "What Is a JPEG? The Invisible Object You See Every Day". The Atlantic. 24 September 2013. Retrieved 13 September 2019.
  15. ^ Baraniuk, Chris (15 October 2015). "Copy protections could come to JPEGs". BBC News. BBC. Retrieved 13 September 2019.
  16. ^ "The GIF Controversy: A Software Developer's Perspective". 27 January 1995. Retrieved 26 May 2015.
  17. ^ L. Peter Deutsch (May 1996). DEFLATE Compressed Data Format Specification version 1.3. IETF. p. 1. sec. Abstract. doi:10.17487/RFC1951. RFC 1951. Retrieved 2014-04-23.
  18. ^ Taubman, David; Marcellin, Michael (2012). JPEG2000 Image Compression Fundamentals, Standards and Practice: Image Compression Fundamentals, Standards and Practice. Springer Science & Business Media. ISBN 9781461507994.
  19. ^ a b Unser, M.; Blu, T. (2003). "Mathematical properties of the JPEG2000 wavelet filters" (PDF). IEEE Transactions on Image Processing. 12 (9): 1080–1090. Bibcode:2003ITIP...12.1080U. doi:10.1109/TIP.2003.812329. PMID 18237979. S2CID 2765169. Archived from the original (PDF) on 2019-10-13.
  20. ^ Sullivan, Gary (8–12 December 2003). "General characteristics and design considerations for temporal subband video coding". ITU-T. Video Coding Experts Group. Retrieved 13 September 2019.
  21. ^ Bovik, Alan C. (2009). The Essential Guide to Video Processing. Academic Press. p. 355. ISBN 9780080922508.
  22. ^ Le Gall, Didier; Tabatabai, Ali J. (1988). "Sub-band coding of digital images using symmetric short kernel filters and arithmetic coding techniques". ICASSP-88., International Conference on Acoustics, Speech, and Signal Processing. pp. 761–764 vol.2. doi:10.1109/ICASSP.1988.196696. S2CID 109186495.
  23. ^ Swartz, Charles S. (2005). Understanding Digital Cinema: A Professional Handbook. Taylor & Francis. p. 147. ISBN 9780240806174.
Read more information:

Arno J. MayerMayer pada Konferensi IEIS 2013Lahir(1926-06-19)19 Juni 1926LuksemburgMeninggalDesember 2023(2023-12-00) (umur Kesalahan ekspresi: Operand tak ditemukan untuk -)Kesalahan ekspresi: Operator > tak terdugaKebangsaanAmerika SerikatAlmamaterUniversitas YaleInstitut Pascasarjana Studi InternasionalCity College of New YorkAnak2Karier ilmiahInstitusiUniversitas PrincetonUniversitas HarvardUniversitas BrandeisUniversitas WesleyanMahasiswa ternamaCorey RobinTerinspirasiKarl MarxMengi…

American comic book writer Geoff JohnsJohns in 2011BornGeoffrey Johns[1] (1973-01-25) January 25, 1973 (age 51)Detroit, Michigan, U.S.Occupation Comic book writer screenwriter producer Alma materMichigan State UniversityYears active1997–presentEmployerDC EntertainmentNotable worksComics: JSA, The Flash, Teen Titans, Green Lantern, Infinite Crisis, 52, Action Comics, Blackest Night, Flashpoint, Doomsday Clock, The Avengers Television: The Flash, Titans, Doom Patrol, Batwo…

Konstantinos Mitroglou Informasi pribadiTanggal lahir 12 Maret 1988 (umur 36)Tempat lahir Kavala, YunaniTinggi 1,88 m (6 ft 2 in)Posisi bermain StrikerInformasi klubKlub saat ini Atromitos F.C.Nomor 23Karier junior2004–2005 MSV Duisburg II2005–2007 Borussia Mönchengladbach IIKarier senior*Tahun Tim Tampil (Gol)2004-2005 MSV Duisburg II 12 (5)2005–2007 Borussia Mönchengladbach II 35 (38)2007– Olympiacos 48 (16)2010–2011 → Panionios (pinjaman) 11 (8)2011– → At…

Carex grallatoria Klasifikasi ilmiah Kerajaan: Plantae Divisi: Tracheophyta Kelas: Liliopsida Ordo: Poales Famili: Cyperaceae Genus: Carex Spesies: Carex grallatoria Nama binomial Carex grallatoriaMaxim. Carex grallatoria adalah spesies tumbuhan seperti rumput yang tergolong ke dalam famili Cyperaceae. Spesies ini juga merupakan bagian dari ordo Poales. Spesies Carex grallatoria sendiri merupakan bagian dari genus Carex.[1] Nama ilmiah dari spesies ini pertama kali diterbitkan oleh Maxim…

Halaman ini berisi artikel tentang penarikan akar bilangan. Untuk akar-akar persamaan, lihat Akar fungsi. Representasi grafis dari fungsi akar kuadrat y = x {\displaystyle y={\sqrt {x}}} Dalam kotak log-log akar ke- n {\displaystyle n} menjadi garis lurus. Dalam matematika, akar pangkat n dari bilangan x adalah suatu bilangan yang apabila dipangkatkan n hasilnya sama dengan x; yaitu suatu bilangan r sedemikian sehingga r n = x {\textstyle r^{n}=x} terpenuhi. Dengan lambang, akar pangkat n dari x…

Araucaria Periode 250–0 jtyl PreЄ Є O S D C P T J K Pg N Jurasik[1]- sekarang Araucaria araucana (en) TaksonomiDivisiPinophytaKelasPinopsidaOrdoPinalesFamiliAraucariaceaeGenusAraucaria Juss., 1789 Tipe taksonomiAraucaria araucana Tata namaSinonim taksonEutassa (en)Columbea (en) SpesiesLihat teks.Distribusi lbs Araucaria adalah genus pohon konifer yang selalu berdaun dari famili Araucariaceae. Ada 19 spesies dalam genus ini, dengan sebaran yang sangat terpisah-pisah di New Caledo…

Jalur Jalan Raya Petojo Utara - Duren Sawit merupakan Jalur Jalan Raya utama di wilayah Provinsi DKI Jakarta, Indonesia yang memiliki panjang 24 km menghubungkan Pasar Tanah Abang, pusat bisnis Kuningan, kawasan Cipinang, hingga bertemu Jalan Pondok Kopi Raya. Jalan ini terbagi menjadi 11 bagian, yakni Jalan Cideng Timur, Jalan Cideng Barat, Jalan Haji Fachrudin, Jalan Kyai Haji Mas Mansyur, Jalan Professor Doktor Satrio, Jalan Casablanca, Jalan Kyai Haji Abdullah Syafei, Jalan Kampung Mela…

Motorways of PakistanPakistan motorway signSystem informationMaintained by National Highway AuthorityLength2,567 km (1,595 mi)Formed1997Highway namesSystem links Roads in Pakistan Motorways of Pakistan (Urdu: پاکستان کے موٹروے) are a network of multiple-lane, high-speed, controlled-access highways in Pakistan which are owned, maintained, and operated federally by Pakistan's National Highway Authority. Motorways were constructed during the 2013-2017 reign of Nawaz Sh…

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Politeknik Kesehatan Kementerian Kesehatan Gorontalo – berita · surat kabar · buku · cendekiawan · JSTOR Politeknik Kesehatan GorontaloJenisPerguruan Tinggi Kedinasan, di bawah Kementerian Kesehatan Republi…

2003 live album by Jason MoranThe BandwagonLive album by Jason MoranReleased2003RecordedNovember 29–30, 2002VenueVillage Vanguard, NYCGenreJazzLength58:29LabelBlue NoteProducerJason MoranJason Moran chronology Modernistic(2002) The Bandwagon(2003) Same Mother(2005) The Bandwagon is a live album by pianist/composer Jason Moran recorded at the Village Vanguard in 2002 and released on the Blue Note label.[1][2] The album is notable for the variety of source material for it…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2017) التاريخ الإجرامي للمسيحيةKriminalgeschichte des Christentums (بالألمانية) معلومات عامةالمؤلف كارلهاينز ديشنر اللغة الألمانية البلد ألمانيا الغربية الموضوع تاريخ المسيحية …

MongoliaМонгол улс大蒙古國1911–19191921–1924 Bendera Lambang Lagu kebangsaan: Зуун лангийн жороо луус Zún langín joró lús Mongolia tahun 1914Mongolia Luar pada tahun 1914, ditunjukkan dengan warna jinggaIbu kotaNiislel Khüree (sekarang Ulaanbaatar)Bahasa yang umum digunakanBahasa MongoliaAgama Buddhisme Tibet, SyamanismePemerintahanTeokratik[1] Monarki AbsolutBogd Khaan • 1911–1924 Bogd Gegeen Kedelapan Perdana Menteri…

Cet article est une ébauche concernant une élection en France. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. 1974 1980 Élections sénatoriales françaises de 1977 25 septembre 1977 SOC – Marcel Champeix Sénateurs élus 62  11 UCDP – Adolphe Chauvin Sénateurs élus 61  7 UREI – Philippe de Bourgoing Sénateurs élus 52  6 RPR – Pierre Carous Sénateurs&…

American politician James W. SymingtonMember of the U.S. House of Representatives from Missouri's 2nd districtIn officeJanuary 3, 1969 – January 3, 1977Preceded byThomas B. CurtisSucceeded byRobert A. YoungChief of Protocol of the United StatesIn officeMarch 22, 1966 – March 31, 1968PresidentLyndon B. JohnsonPreceded byLloyd Nelson HandSucceeded byAngier Biddle Duke Personal detailsBornJames Wadsworth Symington (1927-09-28) September 28, 1927 (age 96)Rochester, New Yor…

إليمرا هايتس   الإحداثيات 42°07′38″N 76°49′27″W / 42.1272°N 76.8242°W / 42.1272; -76.8242   [1] تقسيم إداري  البلد الولايات المتحدة[2]  التقسيم الأعلى مقاطعة تشيمونغ  خصائص جغرافية  المساحة 2.969214 كيلومتر مربع2.969216 كيلومتر مربع (1 أبريل 2010)  ارتفاع 268 متر  عدد ال…

2000 House elections in Texas 2000 United States House of Representatives elections in Texas ← 1998 November 7, 2000 2002 → All 30 Texas seats to the United States House of Representatives   Majority party Minority party   Party Democratic Republican Last election 17 13 Seats won 17 13 Seat change Popular vote 2,799,051 2,932,411 Percentage 46.8% 49.0% Swing 2.5% 2.6% Election results by district Election results by county Democratic  …

Nutrient-rich soil type MollisolA Mollisol profileUsed inUSDA soil taxonomyParent materialLoess, LimestoneClimateHumid continental, semi-arid Mollisol is a soil type which has deep, high organic matter, nutrient-enriched surface soil (A horizon), typically between 60 and 80 cm in depth. This fertile surface horizon, called a mollic epipedon, is the defining diagnostic feature of Mollisols. Mollic epipedons are created by long-term addition of organic materials derived from plant roots and t…

كأس روسيا البيضاء 2011–12 تفاصيل الموسم كأس روسيا البيضاء  النسخة 21  البلد بيلاروس  التاريخ بداية:14 يونيو 2011  نهاية:20 مايو 2012  المنظم اتحاد بيلاروس لكرة القدم  البطل نادي نافتان نوفوبولوتسك  مباريات ملعوبة 47   عدد المشاركين 48   كأس روسيا البيضاء 2010–11  ك…

County in Michigan, United States County in MichiganHuron CountyCountyPort Austin LightLocation within the U.S. state of MichiganMichigan's location within the U.S.Coordinates: 43°52′N 83°02′W / 43.87°N 83.03°W / 43.87; -83.03Country United StatesState MichiganFoundedApril 1, 1840 (created) January 25, 1859 (organized)[1]Named forLake HuronSeatBad AxeLargest cityBad AxeArea • Total2,137 sq mi (5,530 km2) • L…

KingdomCover of the first volume, released in Japan by Shueisha on May 19, 2006.キングダム(Kingudamu)GenrePetualangan, fantasi,[1] sejarah[2] MangaPengarangYasuhisa HaraPenerbitShueishaMajalahWeekly Young JumpDemografiSeinenTerbit26 Januari 2006 – sekarangVolume71 Seri animeSutradaraJun Kamiya (musim 1)Akira Iwanaga (musim 2)SkenarioNaruhisa ArakawaMusikMinako SekiStudioPierrotPelisensiNA FunimationSaluranasliNHK BS PremiumTayang 4 Juni 2012 – sekarangEpisode142 (Daftar …

Kembali kehalaman sebelumnya