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 2010-2011

Verwante presentaties


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

1 Beeldverwerking Prof. dr. ir. W. Philips Didactisch materiaal bij de cursus Academiejaar 2010-2011 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-2011versie: 17/11/2010 07a. 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 Beeldtransformaties

4 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 4 Beeldtransformaties Elk beeld b ( x,y ) van MN pixels kan worden geschreven als een lineaire combinatie van exact MN lineair onafhankelijke basisbeelden p i ( x,y ) x 012 M- 1 b ( x,y ) y 0 1 2 N- 1 Het stelsel heeft een unieke oplossing voor elk willekeurig beeld b ( x,y )  de basisfuncties zijn lineair onafhankelijk geldt alleen als alle c i = 0 zijn Probleem: 0.66( MN ) 3 berekeningen voor het oplossen van het stelsel  veel te traag voor praktische beelden (b.v. M=N= 256) Bij gegeven basisfuncties p i ( x,y ) berekent men de a i voor een gegeven beeld b ( x,y ) door oplossen stelsel MN vergelijkingen MN onbekenden MN×MN vaste getallen

5 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 5 Beeldtransformaties in vectornotatie De coëfficiënten a i bepalen éénduidig het beeld b ( x,y ) De omzetting b ( x,y )  a i heet een lineaire transformatie Soms is het nuttig de pixels van het beeld en de coëfficiënten te rangschikken in kolomvectoren b en a  inverse transformatie wordt b=Pa

6 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 6 Orthogonale transformaties Bij een orthogonale transformatie is de basismatrix P orthogonaal: P t P=I en zijn de basisfuncties p i ( x,y ) orthonormaal: Parseval geldt (cfr. Fouriertransformatie): (in totaal 2( MN) 2 ipv. 0.66( MN) 3 bewerkingen!) 0 als i ≠j 1 als i=j = Voordeel: berekenen coëfficiënten vereist geen stelsel oplossen: b=Pa  veel sneller, maar nog steeds veel te traag voor praktische toepassingen op beelden van realistische afmetingen  P t b=P t Pa=a of dus: a=P t b  ( a i ) 2 is de bijdrage van basisfunctie p i ( x,y ) in de beeldenergie

7 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 7 Eigenschappen orthogonale transformaties… Voordelen van orthogonale transformaties snellere berekening coëfficiënten a i voor een gegeven beeld b ( x,y ) Bij niet-orthogonale basisfuncties hangen de optimale coëfficiënten af van n, het aantal basisfuncties in de benadering gevolg van de stelling van Parseval: de totale kwadratische afwijking tussen twee beelden b ( x,y ) en b ’( x,y ) kan worden beoordeeld adhv. hun coëfficiënten: met eenvoudige kleinste-kwadratenbenadering =de beste benadering van b ( x,y ) met n < MN basisfuncties p i ( x,y )  deze bekom je door de coëfficiënten a i van de weggelaten basisfuncties 0 te stellen en de andere a i te behouden

8 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 8 …Eigenschappen orthogonale transformaties  Gevolgen: eenvoudige inschatting van het belang van een term a k p k ( x,y ): b ’( x,y )= b ( x,y )- a k p k ( x,y )  kwadratische fout E kw ( b,b ’) = | a k | 2 De totale kwadratische afwijking tussen twee beelden b ( x,y ) en b ’( x,y ) kan worden beoordeeld adhv. hun coëfficiënten: Ongecorreleerde ruis (b.v. witte gaussiaanse ruis) op een beeld wordt omgezet in ongecorreleerde “witte” afwijkingen op de coëfficiënten addieve ruis b ’( x,y )= b ( x,y ) +n ( x,y )  a ’ i =a i +  i 0 als x’≠x of y’≠y  2 als x’=x en y’=y = 0 als i≠j  2 als i=j = a i : a i ’ =a i +  i  kwadratische fout: eenvoudige inschatting van fouten op coëfficiënten

9 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 9 Scheidbare orthogonale transformaties… We kunnen de basisfuncties ook met een dubbele index noteren: p i ( x,y ) met 0 ≤i < MN  p i,j ( x,y ) met 0 ≤ i < N en 0 ≤ j < M Stel M=N  Een scheidbare transformatie vraagt 4 N 3 berekeningen per beeld, d.w.z. 4 N bewerkingen per pixel; voor een niet-scheibare transformatie is dit 2 N 4 in totaal en 2 N 2 per pixel Ook de inverse transformatie is sneller in het scheidbaar geval (controleer) 2 M berekeningen voor gegeven x en j  2 M 2 N berekeningen in totaal 2 N berekeningen voor gegeven i en j en als de binnenste som al is berekend  2 MN 2 berekeningen in totaal Bij een scheidbare orthogonale transformatie zijn de basisfuncties van de vorm: p i,j ( x, y ) =q j ( x ) r i ( y )

10 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 10 …Scheidbare orthogonale transformaties Een scheidbare orthogonale transformatie a=P t b is equivalent met eerst een orthogonale transformatie Q t toepassen op elke rij van het beeld dan een orthogonale transformatie R toepassen op elke kolom van het resultaat of in omgekeerde volgorde N x N matrix R t N x M matrix A en b=Pa  B=RAQ t M x M matrix Q N x M matrix B B y,x =b ( x,y ) en Q x,j =q j ( x ) a=P t b  A=R t BQ R y,i =r i ( y )

11 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 11 In de praktijk wil men de 8 N berekeningen nog verder reduceren door het beeld onder te verdelen in ( N/n ) 2 “blokken” (subbeelden) van nxn pixels  overhead=8 n berekeningen/pixel i.p.v. 8 N typisch: n=8 à 32  voor een 256x256 beeld: 64 à 256 bewerkingen/pixel i.p.v. 2048 bewerkingen/pixel door transformaties te kiezen met speciale eigenschappen, die nog sneller kunnen worden berekend Discrete CosinusTransformatie (DCT)  beeldcompressie Wavelettransformatie  compressie en ruisonderdrukking Discrete FourierTransformatie (DFT)  ruisonderdrukking Opmerking Scheidbare orthogonale transformaties hebben nog steeds een grote rekentijd, b.v. voor een 256x256 beeld: 4 N =1024 berekeningen/pixel voor de berekening van de coëfficiënten uit het invoer beeld een zeker aantal bewerkingen voor de eigenlijke beeldverwerking (b.v. ruisonderdrukking of compressie) 4 N =1024 berekeningen/pixel voor de berekening van de coëfficiënten

12 © W. Philips, Universiteit Gent, 1999-2011versie: 17/11/2010 07a. 12 Toepassingen Goede transformaties concentreren de beeldenergie in een klein aantal coëfficiënten (cfr. de fouriertransformatie)  toepassingen beeldcompressie (zie verder) ruisonderdrukking, b.v.b. wavelet-gebaseerde ruisonderdrukking ruizig beeld: b r ( x,y )= b ( x,y ) +n ( x,y )  ruizige coëfficiënten a i +  i na ontruizen: b ’( x,y ) met coëfficiënten a i +  i of 0  verwachte kwadratische afwijking: som loopt over alle nul- gestelde coëfficiënten indien beeld en ruis statistisch onafhankelijk ingevoerde beelddistorsie verwijderde ruis Principe ruisonderdrukking: vervang de coëfficiënten waarvan je vermoedt dat a i,j = 0 in een ruisvrij beeld door 0 Goede ruisonderdrukking vereist keuze goede transformatie  optimale energiecompactie correcte inschatting van welke coëfficiënten klein/groot zijn


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

Verwante presentaties


Ads door Google