<< Chapter < Page Chapter >> Page >
Method to drop DCT coefficients within image framework.

Compression algorithm

Dropping dct coefficients

Our framework and JPEG are both based around the discrete cosine transform. Just like with sound, certainfrequencies in an image are more noticeable than others, so taking them out of the image doesn’t change the image much. We used the 2Ddiscrete cosine transform (DCT) as seen in equation 1 to take an image and converts it into the frequencies that make up the image, in otherwords it takes us into the frequency domain.

B p q = α p α q m = 0 M 1 n = 0 N 1 A m n cos ( π ( 2 m + 1 ) p 2 M ) cos ( π ( 2 n + 1 ) q 2 N ) w h e r e : 0 p M 1 0 q N 1 α p = { 1 / M , p = 0 2 / M , 1 p M 1 α q = { 1 / N , q = 0 2 / N , 1 q N 1 MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr4rNCHbGeaGqiVCI8FfYJH8YrFfeuYxb8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9q8qqaq=dir=f0=yqaiVgFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGceaqabeaacaWGcbWaaSbaaSqaaiaadchacaWGXbaabeaakiabg2da9iabeg7aHnaaBaaaleaacaWGWbaabeaakiabeg7aHnaaBaaaleaacaWGXbaabeaakmaaqahabaWaaabCaeaacaWGbbWaaSbaaSqaaiaad2gacaWGUbaabeaakiGacogacaGGVbGaai4CaiaacIcadaWcaaqaaiabec8aWjaacIcacaaIYaGaamyBaiabgUcaRiaaigdacaGGPaGaamiCaaqaaiaaikdacaWGnbaaaaWcbaGaamOBaiabg2da9iaaicdaaeaacaWGobGaeyOeI0IaaGymaaqdcqGHris5aaWcbaGaamyBaiabg2da9iaaicdaaeaacaWGnbGaeyOeI0IaaGymaaqdcqGHris5aOGaaiykaiGacogacaGGVbGaai4CaiaacIcadaWcaaqaaiabec8aWjaacIcacaaIYaGaamOBaiabgUcaRiaaigdacaGGPaGaamyCaaqaaiaaikdacaWGobaaaiaacMcaaeaacaWG3bGaamiAaiaadwgacaWGYbGaamyzaiaacQdaaeaacaaIWaGaeyizImQaamiCaiabgsMiJkaad2eacqGHsislcaaIXaaabaGaaGimaiabgsMiJkaadghacqGHKjYOcaWGobGaeyOeI0IaaGymaaqaaiabeg7aHnaaBaaaleaacaWGWbaabeaakiabg2da9KazaaEacaGG7bGcfaqabeGabaaabaGaaGymaiaac+cadaGcaaqaaiaad2eaaSqabaGccaGGSaGaamiCaiabg2da9iaaicdaaeaadaGcaaqaaiaaikdacaGGVaGaamytaaWcbeaakiaacYcacaaIXaGaeyizImQaamiCaiabgsMiJkaad2eacqGHsislcaaIXaaaaaqaaiabeg7aHnaaBaaaleaacaWGXbaabeaakiabg2da9KazaaEacaGG7bGcfaqabeGabaaabaGaaGymaiaac+cadaGcaaqaaiaad6eaaSqabaGccaGGSaGaamyCaiabg2da9iaaicdaaeaadaGcaaqaaiaaikdacaGGVaGaamOtaaWcbeaakiaacYcacaaIXaGaeyizImQaamyCaiabgsMiJkaad6eacqGHsislcaaIXaaaaaaaaa@AE52@

There are several transforms that could have been utilized to get the image into the frequency domain. The DCT, however, is a purely real transform. Thus, manipulating the frequencies is much more straightforward compared to other transforms. From here we could take the DCT of the entire image and then throw away frequencies that are less noticeable. Unfortunately this would make the image blurry and cause the image to lose edges. To solve this problem the image is divided into 8x8 blocks, to preserve the integrity of the image. To drop insignificant frequencies, JPEG compression utilizes a quantization matrix. We simplified this process by using a threshold value and dropping frequencies below the threshold. Thus our compression algorithm models the basic functionality of the JPEG standard.

The result of taking the DCT. The numbers in red are the coefficients that fall below the specified threshold of 10.

Questions & Answers

what is mutation
Janga Reply
what is a cell
Sifune Reply
how is urine form
Sifune
what is antagonism?
mahase Reply
classification of plants, gymnosperm features.
Linsy Reply
what is the features of gymnosperm
Linsy
how many types of solid did we have
Samuel Reply
what is an ionic bond
Samuel
What is Atoms
Daprince Reply
what is fallopian tube
Merolyn
what is bladder
Merolyn
what's bulbourethral gland
Eduek Reply
urine is formed in the nephron of the renal medulla in the kidney. It starts from filtration, then selective reabsorption and finally secretion
onuoha Reply
State the evolution relation and relevance between endoplasmic reticulum and cytoskeleton as it relates to cell.
Jeremiah
what is heart
Konadu Reply
how is urine formed in human
Konadu
how is urine formed in human
Rahma
what is the diference between a cavity and a canal
Pelagie Reply
what is the causative agent of malaria
Diamond
malaria is caused by an insect called mosquito.
Naomi
Malaria is cause by female anopheles mosquito
Isaac
Malaria is caused by plasmodium Female anopheles mosquitoe is d carrier
Olalekan
a canal is more needed in a root but a cavity is a bad effect
Commander
what are pathogens
Don Reply
In biology, a pathogen (Greek: πάθος pathos "suffering", "passion" and -γενής -genēs "producer of") in the oldest and broadest sense, is anything that can produce disease. A pathogen may also be referred to as an infectious agent, or simply a germ. The term pathogen came into use in the 1880s.[1][2
Zainab
A virus
Commander
Definition of respiration
Muhsin Reply
respiration is the process in which we breath in oxygen and breath out carbon dioxide
Achor
how are lungs work
Commander
where does digestion begins
Achiri Reply
in the mouth
EZEKIEL
what are the functions of follicle stimulating harmones?
Rashima Reply
stimulates the follicle to release the mature ovum into the oviduct
Davonte
what are the functions of Endocrine and pituitary gland
Chinaza
endocrine secrete hormone and regulate body process
Achor
while pituitary gland is an example of endocrine system and it's found in the Brain
Achor
what's biology?
Egbodo Reply
Biology is the study of living organisms, divided into many specialized field that cover their morphology, physiology,anatomy, behaviour,origin and distribution.
Lisah
biology is the study of life.
Alfreda
Biology is the study of how living organisms live and survive in a specific environment
Sifune
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Elec 301 projects fall 2005. OpenStax CNX. Sep 25, 2007 Download for free at http://cnx.org/content/col10380/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Elec 301 projects fall 2005' conversation and receive update notifications?

Ask