SlideShare a Scribd company logo
Level 4 actions: Compression
Read the image file, decompose into color components (you will generate three gray level
images from a color image by separating RGB components)
Scan each image and construct the LZW Dictionary
Store the binary code instead of gray levels
Save the compressed file
Calculate entropy, average code length, size of the compressed file and compression ratio
Decompression
Read the stored data
Restore the LZW dictionary
Restore the image from the compressed data
Save the restored image
Compare the original image and restored image

More Related Content

More from agarwaltradingco

Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdfMart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
agarwaltradingco
 
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdfMarissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
agarwaltradingco
 
Margaret Jefferson, gerente general de una compa��a profesional de a.pdf
Margaret Jefferson, gerente general de una compa��a profesional de a.pdfMargaret Jefferson, gerente general de una compa��a profesional de a.pdf
Margaret Jefferson, gerente general de una compa��a profesional de a.pdf
agarwaltradingco
 
Margarita is a student at Vanderbilt University who recently got her.pdf
Margarita is a student at Vanderbilt University who recently got her.pdfMargarita is a student at Vanderbilt University who recently got her.pdf
Margarita is a student at Vanderbilt University who recently got her.pdf
agarwaltradingco
 
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdfMagic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
agarwaltradingco
 
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdfM1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
agarwaltradingco
 
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdfL�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
agarwaltradingco
 
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdfl�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
agarwaltradingco
 
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdfL�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
agarwaltradingco
 
Lowell Inc. has the folloLowell Inc. had the following data for the .pdf
Lowell Inc. has the folloLowell Inc. had the following data for the .pdfLowell Inc. has the folloLowell Inc. had the following data for the .pdf
Lowell Inc. has the folloLowell Inc. had the following data for the .pdf
agarwaltradingco
 
LT India Ltd tiene la siguiente estructura de capital, que considera.pdf
LT India Ltd tiene la siguiente estructura de capital, que considera.pdfLT India Ltd tiene la siguiente estructura de capital, que considera.pdf
LT India Ltd tiene la siguiente estructura de capital, que considera.pdf
agarwaltradingco
 
Los miembros de la audiencia que creen que el orador es totalmente r.pdf
Los miembros de la audiencia que creen que el orador es totalmente r.pdfLos miembros de la audiencia que creen que el orador es totalmente r.pdf
Los miembros de la audiencia que creen que el orador es totalmente r.pdf
agarwaltradingco
 
Life Expectancies In a study of the life expectancy of 500 people in.pdf
Life Expectancies In a study of the life expectancy of 500 people in.pdfLife Expectancies In a study of the life expectancy of 500 people in.pdf
Life Expectancies In a study of the life expectancy of 500 people in.pdf
agarwaltradingco
 
Los estudios sobre la toma de decisiones humanas han detectado error.pdf
Los estudios sobre la toma de decisiones humanas han detectado error.pdfLos estudios sobre la toma de decisiones humanas han detectado error.pdf
Los estudios sobre la toma de decisiones humanas han detectado error.pdf
agarwaltradingco
 
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdfLooking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
agarwaltradingco
 
Los contadores de Ritter Corporation prepararon los siguientes estad.pdf
Los contadores de Ritter Corporation prepararon los siguientes estad.pdfLos contadores de Ritter Corporation prepararon los siguientes estad.pdf
Los contadores de Ritter Corporation prepararon los siguientes estad.pdf
agarwaltradingco
 
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdfLos adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
agarwaltradingco
 
Long Wait Time Solution. CASES The State University Experience Revis.pdf
Long Wait Time Solution. CASES The State University Experience Revis.pdfLong Wait Time Solution. CASES The State University Experience Revis.pdf
Long Wait Time Solution. CASES The State University Experience Revis.pdf
agarwaltradingco
 
Long Wait Time Solution.CASESThe State University Experience.pdf
Long Wait Time Solution.CASESThe State University Experience.pdfLong Wait Time Solution.CASESThe State University Experience.pdf
Long Wait Time Solution.CASESThe State University Experience.pdf
agarwaltradingco
 
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdflk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
agarwaltradingco
 

More from agarwaltradingco (20)

Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdfMart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
Mart 2006da Jobland �lkesinin ig�c� departman, ig�c�n�n b�y�kl��n� .pdf
 
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdfMarissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
Marissa Mayer CEO olduunda Yahoo, odakland ilk eylerden biri irk.pdf
 
Margaret Jefferson, gerente general de una compa��a profesional de a.pdf
Margaret Jefferson, gerente general de una compa��a profesional de a.pdfMargaret Jefferson, gerente general de una compa��a profesional de a.pdf
Margaret Jefferson, gerente general de una compa��a profesional de a.pdf
 
Margarita is a student at Vanderbilt University who recently got her.pdf
Margarita is a student at Vanderbilt University who recently got her.pdfMargarita is a student at Vanderbilt University who recently got her.pdf
Margarita is a student at Vanderbilt University who recently got her.pdf
 
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdfMagic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
Magic lived with his Mother, Clare in San Juan Trinidad. Magic is se.pdf
 
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdfM1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
M1-12 (Algo) Preparing a Statement of Retained Earnings [LO 1-2] Sto.pdf
 
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdfL�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
L�tfen iinizi g�sterin. Belirli bir yln 1 Kasmnda belirli bir hisse.pdf
 
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdfl�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
l�tfen yardm et 1. �zsermaye finansman bkz. A. para yerine mal v.pdf
 
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdfL�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
L�tfen davay dikkatlice okuyun. Hangi arg�mana katlyorsunuz (nokta v.pdf
 
Lowell Inc. has the folloLowell Inc. had the following data for the .pdf
Lowell Inc. has the folloLowell Inc. had the following data for the .pdfLowell Inc. has the folloLowell Inc. had the following data for the .pdf
Lowell Inc. has the folloLowell Inc. had the following data for the .pdf
 
LT India Ltd tiene la siguiente estructura de capital, que considera.pdf
LT India Ltd tiene la siguiente estructura de capital, que considera.pdfLT India Ltd tiene la siguiente estructura de capital, que considera.pdf
LT India Ltd tiene la siguiente estructura de capital, que considera.pdf
 
Los miembros de la audiencia que creen que el orador es totalmente r.pdf
Los miembros de la audiencia que creen que el orador es totalmente r.pdfLos miembros de la audiencia que creen que el orador es totalmente r.pdf
Los miembros de la audiencia que creen que el orador es totalmente r.pdf
 
Life Expectancies In a study of the life expectancy of 500 people in.pdf
Life Expectancies In a study of the life expectancy of 500 people in.pdfLife Expectancies In a study of the life expectancy of 500 people in.pdf
Life Expectancies In a study of the life expectancy of 500 people in.pdf
 
Los estudios sobre la toma de decisiones humanas han detectado error.pdf
Los estudios sobre la toma de decisiones humanas han detectado error.pdfLos estudios sobre la toma de decisiones humanas han detectado error.pdf
Los estudios sobre la toma de decisiones humanas han detectado error.pdf
 
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdfLooking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
Looking at the documentary Rumble TheIndians Who Rocked the Worl.pdf
 
Los contadores de Ritter Corporation prepararon los siguientes estad.pdf
Los contadores de Ritter Corporation prepararon los siguientes estad.pdfLos contadores de Ritter Corporation prepararon los siguientes estad.pdf
Los contadores de Ritter Corporation prepararon los siguientes estad.pdf
 
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdfLos adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
Los adultos con enfermedad renal cr�nica con frecuencia desarrollan .pdf
 
Long Wait Time Solution. CASES The State University Experience Revis.pdf
Long Wait Time Solution. CASES The State University Experience Revis.pdfLong Wait Time Solution. CASES The State University Experience Revis.pdf
Long Wait Time Solution. CASES The State University Experience Revis.pdf
 
Long Wait Time Solution.CASESThe State University Experience.pdf
Long Wait Time Solution.CASESThe State University Experience.pdfLong Wait Time Solution.CASESThe State University Experience.pdf
Long Wait Time Solution.CASESThe State University Experience.pdf
 
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdflk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
lk proje ekibi toplantnz, ekibinizin doktorunun fonksiyonel y�netici.pdf
 

Recently uploaded

How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

Level 4 actions Compression� Read the image file, decompose into .pdf

  • 1. Level 4 actions: Compression Read the image file, decompose into color components (you will generate three gray level images from a color image by separating RGB components) Scan each image and construct the LZW Dictionary Store the binary code instead of gray levels Save the compressed file Calculate entropy, average code length, size of the compressed file and compression ratio Decompression Read the stored data Restore the LZW dictionary Restore the image from the compressed data Save the restored image Compare the original image and restored image