信號圖像處理課件:Chapter 2 Digital Image Fundamentals_第1頁
信號圖像處理課件:Chapter 2 Digital Image Fundamentals_第2頁
信號圖像處理課件:Chapter 2 Digital Image Fundamentals_第3頁
信號圖像處理課件:Chapter 2 Digital Image Fundamentals_第4頁
信號圖像處理課件:Chapter 2 Digital Image Fundamentals_第5頁
已閱讀5頁,還剩44頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

Chapter2

DigitalImageFundamentalsChapter2

DigitalImageFundamentals2.1ElementsofVisualPerception2.2Light&EMSpectrum2.3ImageSensing&Acquisition2.3.4AsimpleImageFormationModelf(x,y)=i(x,y)r(x,y)i(x,y):illuminationcomponents,0<i(x,y)<∞r(nóng)(x,y):reflectancecomponents,0<r(x,y)<12.4.1BasicConceptinSampling&Quantization2.4.1BasicConceptinSampling&Quantization2.4.1BasicConceptinSampling&Quantization2.4.2RepresentingDigitalImageMatrixor2-DArray2.4.3Spatial&IntensityResolutionSpatialResolutionLinepairsperunitdistanceDots(pixels)perunitdistanceDpi:dotperinchSpatialresolutionisameasureoftheaccuracyordetailofagraphicdisplay,expressedasdotsperinch,pixelsperinch,linesperinch,etc.SpatialResolution

Exercise10inch,1024X768SpatialResolution=?ExerciseDiagonallength=10inch2.4.3Spatial&IntensityResolutionIntensityResolutionIntensityLevelUsuallyisanintegerpoweroftwo8bitsHDMI

1.3

support10bits,12bits,16bitsforeachcolorcomponent(channel)IntensityResolutionIntensityResolutionHowtogetn-bitsimage?7bit6bit5bit4bit3bit2bit1bit0bit007bit6bit5bit4bit3bit2bit7bit6bit5bit4bit3bit2bit00>><<IntensityResolution[Programming]Exercise:byte[,]get_n_bits_image(byte[,]f,intn);2.5SameBasicRelationshipbetweenpixels2.5.1Neighborsofapixel2.5.1Neighborsofapixelp:(x,y)4-Neighborsofp:N4(p)={(x+1,y),(x-1,y),(x,y+1),(x,y-1)}2.5.1Neighborsofapixelp:(x,y)D-Neighbors(Diagonal-Neighbors)ofp:ND(p)={(x+1,y+1),(x-1,y+1),(x+1,y-1),(x-1,y-1)}2.5.1Neighborsofapixelp:(x,y)8-Neighborsofp:N8(p)=N4(p)UND(p)2.5.2Adjacency,Connectivity,RegionandBoundariesAdjacencyBinaryimage:Intensity{0,1}Usually0meansbackgroundand1meansforeground

0000000000000000000110000011110000111100001111000000000000000000AdjacencyBothpandqareintheforeground(V:{1})4-adjacency:qinN4(p)8-adacency:qinN8(p)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})Adjacencym-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000011010001m-Adjacencyp:(yellow),q:(green)BluebackgroundpixelmeanssetN4(p)∩N4(q)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000000000000000000000000000m-Adjacencyp:(yellow),q:(blue)BluebackgroundpixelmeanssetN4(p)∩N4(q)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000[Programing]boolIs_4adjacent(intpx,intpy,intqx,intqy);boolIs_8adjacent(intpx,intpy,intqx,intqy);BoolIs_m_adjacent(byte[,]f,intpx,intpy,intqx,intqy);DigitalPathDigitalPathfrompixelptopixelqisasequenceofdistinctpixelswithcoordinates(x0,y0),(x1,y1),…,(xn,yn)where(xi-1,yi-1)and(xi,yi)areadjacent,i:[1..n]DigitalPathp6p7p8p9=qp5p4p3p2p1p0=pDigitalPath(Closed)p6p7p8p9p5p10p4p11p3p12p2P13=qp1p0=pConnectedSet(Region)ConnectedSet(Region)qqpPS2S1AdjacentRegionsIfRiURjisaconnectedset,RiandRjaraadjacentregions.RjRiDisjointRegionsNotAdjacentForeground/BackgroundBFForeground/BackgroundKdisjointregions,Rk,k=1,2,..,KRu=R1UR2U…URK(Ru)c,cmeanscomplementForeground:RuBackground:(Ru)cForeground/BackgroundB:(Ru)cF:RuBoundary(Border/Contour)ofRegionInnerBorderofRegionB(in)={(x,y)|(x,y)∈R,(x,y)adjacentto(R)c}p4p5P6p7p8P3p9P2p12p11p10P1p13p0p15p14Exercise:

byte[,]getInnerBorder(byte[,]f)Intput:fisabinaryimage,0meansbackgroundand255meansforeground(regions)Output:binaryimage.255meansinnerbordersoftheregionsininputimageBoundary(Border/Contour)ofRegionInnerBorderofRegionExercise:

byte[,]getOuterBorder(byte[,]f)OuterBorderofRegionB(out)={(x,y)|(x,y)∈(R)c,(x,y)adjacenttoR}Exercise:

byte[,]getOuterBorder(byte[,]f)Intput:fisabinaryimage,0meansbackgroundand255meansforeground(regions)Output:binaryimage.255meansouterbordersoftheregionsininputimage2.5.3DistanceMeasureDistanceFunctionp(x,y),q(s,t),z(u,v)D(p,q)≥0,D(p,q)=0iffp=qD(p,q)=D(q,p)D(p,z)≤D(p,q)+D(q,z)2.5.3DistanceMeasureEuclideandistance[Eu’cl[ai]dean] 2.5.3DistanceMeasureCity-blockdistanceD4(p,q)=│x-s│+│y-t│;p:(x,y),q(s,t)2.5.3DistanceMeasureChessboarddistanceD8(p,q)=max(│x-s│,│y-t│) chessman:king2.5.3DistanceMeasureChessboarddistanceqPExerciseMax(De,D4,D8)=?Min(De,D4,D8)=?D4(p,q)=│x-s│+│y-t│D8(p,q)=max(│x-s│,│y-t│)Exerc

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論