数字图像处理 第二版中文版(冈萨雷斯)习题答案

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DigitalImageProcessingSecondEditionProblemSolutionswStudentSetRafaelC.GonzalezRichardE.WoodsPrenticeHallUpperSaddleRiver,NJ07458°1992­2002byRafaelC.GonzalezandRichardE.Woods1PrefaceThisabbreviatedmanualcontainsdetailedsolutionstoallproblemsmarkedwithastarinDigitalImageProcessing,2ndEdition.Thesesolutionscanalsobedownloadedfromthebookwebsite().2Solutions(Students)Problem2.1Thediameter,x,oftheretinalimagecorrespondingtothedotisobtainedfromsimilartriangles,asshowninFig.P2.1.Thatis,(d=2)0:2=(x=2)0:014whichgivesx=0:07d.FromthediscussioninSection2.1.1,andtakingsomelibertiesofinterpretation,wecanthinkofthefoveaasasquaresensorarrayhavingontheorderof337,000elements,whichtranslatesintoanarrayofsize580£580elements.Assumingequalspacingbetweenelements,thisgives580elementsand579spacesonaline1.5mmlong.Thesizeofeachelementandeachspaceisthens=[(1:5mm)=1;159]=1:3£10¡6m.Ifthesize(onthefovea)oftheimageddotislessthanthesizeofasingleresolutionelement,weassumethatthedotwillbeinvisibletotheeye.Inotherwords,theeyewillnotdetectadotifitsdiameter,d,issuchthat0:07(d)1:3£10¡6m,ord18:6£10¡6m.FigureP2.14Chapter2Solutions(Students)Problem2.3¸=c=v=2:998£108(m/s)=60(1/s)=4:99£106m=5000Km.Problem2.6Onepossiblesolutionistoequipamonochromecamerawithamechanicaldevicethatsequentiallyplacesared,agreen,andabluepass®lterinfrontofthelens.Thestrongestcameraresponsedeterminesthecolor.Ifallthreeresponsesareapproximatelyequal,theobjectiswhite.Afastersystemwouldutilizethreedifferentcameras,eachequippedwithanindividual®lter.Theanalysiswouldbethenbasedonpollingtheresponseofeachcamera.Thissystemwouldbealittlemoreexpensive,butitwouldbefasterandmorereliable.Notethatbothsolutionsassumethatthe®eldofviewofthecamera(s)issuchthatitiscompletely®lledbyauniformcolor[i.e.,thecamera(s)is(are)focusedonapartofthevehiclewhereonlyitscolorisseen.Otherwisefurtheranalysiswouldberequiredtoisolatetheregionofuniformcolor,whichisallthatisofinterestinsolvingthisproblem].Problem2.9(a)Thetotalamountofdata(includingthestartandstopbit)inan8­bit,1024£1024image,is(1024)2£[8+2]bits.ThetotaltimerequiredtotransmitthisimageoveraAt56Kbaudlinkis(1024)2£[8+2]=56000=187:25secorabout3.1min.(b)At750Kthistimegoesdowntoabout14sec.Problem2.11LetpandqbeasshowninFig.P2.11.Then,(a)S1andS2arenot4­connectedbecauseqisnotinthesetN4(p)u(b)S1andS2are8­connectedbecauseqisinthesetN8(p)u(c)S1andS2arem­connectedbecause(i)qisinND(p),and(ii)thesetN4(p)\N4(q)isempty.Problem2.125FigureP2.11Problem2.12Thesolutiontothisproblemconsistsofde®ningallpossibleneighborhoodshapestogofromadiagonalsegmenttoacorresponding4­connectedsegment,asshowninFig.P2.12.Thealgorithmthensimplylooksfortheappropriatematcheverytimeadiagonalsegmentisencounteredintheboundary.FigureP2.12Problem2.15(a)WhenV=f0;1g,4­pathdoesnotexistbetweenpandqbecauseitisimpossibleto6Chapter2Solutions(Students)getfromptoqbytravelingalongpointsthatareboth4­adjacentandalsohavevaluesfromV.FigureP2.15(a)showsthisconditionuitisnotpossibletogettoq.Theshortest8­pathisshowninFig.P2.15(b)uitslengthis4.Thelengthofshortestm­path(showndashed)is5.Bothoftheseshortestpathsareuniqueinthiscase.(b)Onepossibilityfortheshortest4­pathwhenV=f1;2gisshowninFig.P2.15(c)uitslengthis6.Itiseasilyveri®edthatanother4­pathofthesamelengthexistsbetweenpandq.Onepossibilityfortheshortest8­path(itisnotunique)isshowninFig.P2.15(d)uitslengthis4.Thelengthofashortestm­path(shoendashed)is6.Thispathisnotunique.FigureP2.15Problem2.16(a)Ashortest4­pathbetweenapointpwithcoordinates(x;y)andapointqwithcoor­dinates(s;t)isshowninFig.P2.16,wheretheassumptionisthatallpointsalongthepatharefromV.Thelengthofthesegmentsofthepatharejx¡sjandjy¡tj,respec­tively.Thetotalpathlengthisjx¡sj+jy¡tj,whichwerecognizeasthede®nitionoftheD4distance,asgiveninEq.(2.5­16).(Recallthatthisdistanceisindependentofanypathsthatmayexistbetweenthepoints.)TheD4distanceobviouslyisequaltothelengthoftheshortest4­pathwhenthelengthofthepathisjx¡sj+jy¡tj.Thisoc­curswheneverwecangetfromptoqbyfollowingapathwhoseelements(1)arefromV;and(2)arearrangedinsuchawaythatwecantraversethepathfromptoqbymak­ingturnsinatmosttwodirections(e.g.,rightandup).(b)Thepathmayofmaynotbeunique,dependingonVandthevaluesofthepointsalongtheway.Problem2.187FigureP2.16Problem2.18WithreferencetoEq.(2.6­1),letHdenotetheneighborhoodsumoperator,letS1andS2denotetwodifferentsmallsubimageareasofthesamesize,andletS1+S2denotethecorrespondingpixel­by­pixelsumoftheelementsinS1andS2,asexplainedinSection2.5.4.Notethatthesizeoftheneighborhood(i.e.,numberofpixels)isnotchangedbythispixel­by­pixelsum.TheoperatorHcomputesthesumofpixelvaluesisagivenneighborhood.Then,H(aS1+bS2)means:(1)multiplyingthepixelsineachofthesubimageareasbytheconstantsshown,(2)addingthepixel­by­pixelvaluesfromS1andS2(whichproducesasinglesubimagearea),and(3)computingthesumofthevaluesofallthepixelsinthatsinglesubimagearea.Letap1andbp2denotetwoarbitrary(butcorresponding)pixelsfromaS1+bS2.ThenwecanwriteH(aS1+

1 / 93
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功