De presentatie wordt gedownload. Even geduld aub

De presentatie wordt gedownload. Even geduld aub

Beeldverwerking Prof. dr. ir. W. Philips Didactisch materiaal bij de cursus Academiejaar 2011-2012

Verwante presentaties


Presentatie over: "Beeldverwerking Prof. dr. ir. W. Philips Didactisch materiaal bij de cursus Academiejaar 2011-2012"— Transcript van de presentatie:

1 Beeldverwerking Prof. dr. ir. W. Philips Didactisch materiaal bij de cursus Academiejaar 2011-2012 philips@telin.UGent.be http://telin.UGent.be/~philips/beeldv/ Tel: 09/264.33.85 Fax: 09/264.42.95

2 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 2 Copyright notice This powerpoint presentation was developed as an educational aid to the renewed course “Image processing” (Beeldverwerking), taught at the University of Gent, Belgium as of 1998. This presentation may be used, modified and copied free of charge for non-commercial purposes by individuals and non-for-profit organisations and distributed free of charge by individuals and non-for-profit organisations to individuals and non-for-profit organisations, either in electronic form on a physical storage medium such as a CD-rom, provided that the following conditions are observed: 1.If you use this presentation as a whole or in part either in original or modified form, you should include the copyright notice “© W. Philips, Universiteit Gent, 1998- 2002” in a font size of at least 10 point on each slide; 2.You should include this slide (with the copyright conditions) once in each document (by which is meant either a computer file or a reproduction derived from such a file); 3. If you modify the presentation, you should clearly state so in the presentation; 4.You may not charge a fee for presenting or distributing the presentation, except to cover your costs pertaining to distribution. In other words, you or your organisation should not intend to make or make a profit from the activity for which you use or distribute the presentation; 5. You may not distribute the presentations electronically through a network (e.g., an HTTP or FTP server) without express permission by the author. In case the presentation is modified these requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the presentation, and can be reasonably considered independent and separate works in themselves, then these requirements do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the presentation, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. In particular note that condition 4 also applies to the modified work (i.e., you may not charge for it). “Using and distributing the presentation” means using it for any purpose, including but not limited to viewing it, presenting it to an audience in a lecture, distributing it to students or employees for self-teaching purposes,... Use, modification, copying and distribution for commercial purposes or by commercial organisations is not covered by this licence and is not permitted without the author’s consent. A fee may be charged for such use. Disclaimer: Note that no warrantee is offered, neither for the correctness of the contents of this presentation, nor to the safety of its use. Electronic documents such as this one are inherently unsafe because they may become infected by macro viruses. The programs used to view and modify this software are also inherently unsafe and may contain bugs that might corrupt the data or the operating system on your computer. If you use this presentation, I would appreciate being notified of this by email. I would also like to be informed of any errors or omissions that you discover. Finally, if you have developed similar presentations I would be grateful if you allow me to use these in my course lectures. Prof. dr. ir. W. PhilipsE-mail: philips@telin.UGent.be Department of Telecommunications and Information ProcessingFax: 32-9-264.42.95 University of GentTel: 32-9-264.33.85 St.-Pietersnieuwstraat 41, B9000 Gent, Belgium

3 Compressietechnieken voor beelden Verliesloze beeldcompressie

4 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 4 De “Binary Tree Predictive Coder”... splits - + - + - + predictiefouten beeldpixels Voordeel: de predictor kan nu ook buurpixels beneden en rechts van de “huidige” pixel gebruiken  nauwkeuriger predictie mogelijk

5 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 5 …BTPC: niet-lineaire predictie Dichtste, tegenoverliggende buren predictor: ac d b X ab dc X Xp=Xp= ( a+c ) / 2 als |a-c |  |b-d | ( b+d ) / 2 als |a-c |  |b-d | Optredende predictieomgevingen a b d c X Randpixel x y b ( x,y ) Geïdealiseerd voorbeeld: ( b+d ) / 2 is hier zeker een goede voorspelling ( a+c ) / 2 is niet noodzakelijk een goede voorspelling (enkel goed als b ( x,y ) lineair varieert tussen a en c Basisidee:in “vlakke gebieden” werkt de predictor even goed als ( a+b+c+d )/4 in de omgeving van een rand werkt hij dikwijls beter c < b  x  d <a

6 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 6 Flat region Gradients Context modeler Run counter Golomb coder Run coder Adaptive correction Fixed predictor - + pred. errors run lengths image samples regular run Coder predictor predicted values compressed bitstream run regular mode context image samples c a b x d De nieuwe standaard: JPEG-LS Zeer complexe predictor en statistische coder Toch een vrij lage rekentijd Geïnspireerd op de zogenaamde Calic techniek die quasi even goed comprimeert maar wel twee maal trager is statistics statistische codering predictie en contextmodellering

7 Compressietechnieken voor beelden Verliesloze compressie in de praktijk

8 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 8 Verliesloze compressie: voorbeeld (2001) bzip stat gzip compressCalic LjpegJPEG-LS rekentijd (in s) voor (de)compressie van 16 Mbyte aan MR-beelden (166MHz PowerPC) afmeting gecomprimeerd bestand (in %) compressie decompressie De haalbare compressiefactor is klein bij verliesloze compressie; dit geldt voor de meeste soorten beelden; Aritmetische coders doen het meestal iets beter dan Huffmancoders Geavanceerde technieken voor “general-purpose” compressie doen het ook niet slecht maar zijn wel trager standaard technieken; niet specifiek voor beelden gesofisticeerde technieken; niet specifiek voor beelden

9 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 9 De compressiefactor hangt sterk af van het soort beeld Afhankelijkheid van het soort beeld compressiefactor

10 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 10 Samenvatting en besluit Performantievergelijking: Gesofisticeerde technieken (b.v. JPEG-LS en Calic) doen het beter dan eenvoudige technieken (b.v. LJPG) Invloed van het soort beelddata De compressiefactor hangt sterk af van het soort beeld Beelden met grote spatiale resolutie comprimeren het best Resultaten typische compressiefactoren van 2 à 4 op medische en pre-press beelden Aritmetische coders doen het beter dan Huffmancoders Belangrijke basisprincipes voorbewerking: lineaire en niet-lineaire predictie contextmodellering statistische codeertechnieken: Huffmancoders en aritmetische coders

11 Appendix Zelfstudie

12 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 12 Verliesloze compressie van medische beelden compressiefactor De haalbare compressiefactor is klein bij verliesloze compressie; dit geldt voor de meeste soorten beelden; Aritmetische coders doen het meestal iets beter dan Huffmancoders

13 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 13 Blok-Huffmancodes... Beperkingen bij apart coderen van de verschillende symbolen men laat statistische afhankelijkheden tussen opeenvolgende symbolen onbenut stationaire bron A D F D G D D D D C D Esymbolen: AD FD GD DD DC DEmetasymbolen: Oplossing: blockcodes groepeer n opeenvolgende symbolen in 1 metasymbool codeer deze symbolen met een Huffmancode Beperking van blokcodes: hoe groter n, hoe meer mogelijke symbolen  codeboek wordt groot  men kan de metasymboolprobabiliteiten niet goed meer schatten  complexiteit loopt uit de hand men moet minstens één bit per symbool genereren  niet efficiënt bij lage entropie

14 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 14...Blok-Huffmancodes  Het gemiddelde aantal bits per symbool benadert dichter de eerste- orde entropie (maximale afwijking: 0.5 bit per pixel i.p.v. 1 bit per pixel) Eerste-orde bronentropie=symboolentropie: stationaire bron A D F D G D D D D C D Esymbolen: AD FD GD DD DC DEmetasymbolen: Tweede-orde bronentropie=metasymboolentropie: Als  i en  j statistisch onafhankelijk  Als  i en  j niet statistisch onafhankelijk (verifieer) Gemiddelde codewoordlengte van de blokcode: Voor blokgrootte m : en H m /m < H (!)

15 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 15 Context Generation & Quantization Gradient- adjusted Prediction P Binary Mode? + - Two-row double buffer Ternary Entropy Coder Error modelling Conditional Probabilities Estimation Coding Histogram Sharpening Entropy Coder Code yes no P’ P’’ e’ e The CALIC coding scheme tekst en grafische elementen

16 © W. Philips, Universiteit Gent, 1999-2012versie: 14/12/2011 12b. 16 Oefening: oplossing Bereken alle codewoorden voor ingangs-strings met lengte 3 als P (0)=0.25 x 1 x 2 x 3 a( x 1 x 2 x 3 )codewoordlengte decimaal binair 0000.000.0000000000006 0.016 0010.016.0000010000016 0.047 0100.062.000100000105 0.047 0110.109.000111000115 0.140 1000.250.010000010005 0.047 1010.297.010011010015 0.140 1100.438.0111000113 0.140 1110.578.10010111 0.422 -1.000 1.000000- Wat is de gemiddelde codewoordlengte in dit geval? (3.1)  de aritmetische coder wordt pas efficiënt als n groot wordt


Download ppt "Beeldverwerking Prof. dr. ir. W. Philips Didactisch materiaal bij de cursus Academiejaar 2011-2012"

Verwante presentaties


Ads door Google