基于FPGA索贝尔边缘检测算子的安全体系.docx

上传人:b****1 文档编号:10493052 上传时间:2023-05-26 格式:DOCX 页数:12 大小:605.29KB
下载 相关 举报
基于FPGA索贝尔边缘检测算子的安全体系.docx_第1页
第1页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第2页
第2页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第3页
第3页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第4页
第4页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第5页
第5页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第6页
第6页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第7页
第7页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第8页
第8页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第9页
第9页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第10页
第10页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第11页
第11页 / 共12页
基于FPGA索贝尔边缘检测算子的安全体系.docx_第12页
第12页 / 共12页
亲,该文档总共12页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

基于FPGA索贝尔边缘检测算子的安全体系.docx

《基于FPGA索贝尔边缘检测算子的安全体系.docx》由会员分享,可在线阅读,更多相关《基于FPGA索贝尔边缘检测算子的安全体系.docx(12页珍藏版)》请在冰点文库上搜索。

基于FPGA索贝尔边缘检测算子的安全体系.docx

基于FPGA索贝尔边缘检测算子的安全体系

AnovelFPGA-basedarchitectureforSobeledgedetectionoperator

T.A.ABBASIyandM.U.ABBASI*zyDepartmentofElectronicsandCommunicationEngineering,UniversityPolytechnic,JamiaMilliaIslamia,NewDelhi-110025,IndiazVirageLogicInternational,Sector-57,Noida,UP-201307,India(Received9June2006;infinalform27August2007)AnovelFPGA-basedarchitectureforSobeledgedetectionalgorithmhasbeenproposed.TheSobelalgorithmischosenduetoitspropertyofprovidingadifferencingaswellasnoisesmoothingoperationinthesinglekernel.Thus,noisesensitivityoffirstgradientbasedoperationscanbeavoidedbytheuseofthisalgorithm.Theimplementationofedgedetectionalgorithmsonafieldprogrammablegatearray(FPGA)ismotivatedbythefactthatlargememory

FPGAsarenowavailable,providingaplatformforprocessingrealtimealgorithmsonapplication-specifichardwarewithsubstantiallyhigherperformancethanprogrammabledigitalsignalprocessors(DSPs).Thisarchitecturecanbeusedasabuildingblockofapatternrecognitionsystem,autonomousrobotnavigation,andalsoasasystemforcreatinganimagedazzlingeffectinmultimediagraphics.Thisarchitectureisimplicitlypipelinedtoprovideasystemcapableofoperatingataclockspeedof99.499MHzwhichisasignificantimprovementoverprogrammableDSPsimplementation.

Keywords:

Edgedetectionalgorithms;Firstgradientbasedoperators;Hardware

implementation;Sobeloperators;VLSI

1.Introduction

Edgesareconsideredtobethemostimportantimageattributesthatprovidevaluableinformationforhumanimageperception.Imageedgesoccurinplacesofsignificantintensitychangesontheimage.Therearemanykindsofintensitychangesinanimage.Theusualaimofedgedetectionistolocateedgesbelongingtoboundariesofobjectsofinterest.Recognitionorclassificationofpicturesbydigitalcomputerisgenerallydonebyusingtheinformationcontainedintheedgesbetweendifferentregions.Thishasrecognizededgedetectionasthemostessentialtaskinimageprocessing,patternrecognitionandrobotics.Whilethehumaneyesperformthistaskeasily,thedetectionofedgesonamachineisadifficulttasktoachieve.Consequently,substantialefforthasbeendirectedtowardsthisproblem,resultinginanumberofedgedetectionalgorithms(Jain1989,ChandaandDuttaMajumdar

2001,GonzalezandWoods2002,Bose2004,Pratt2004,Heathetal.2002).However,mostoftheseeffortshavebeenconcentratedonfindingbetteredge

detectionalgorithmsratherthantheirimplementationissues.

Presently,implementationofedgedetectionalgorithmsislimitedtoprogrammabledigitalsignalprocessors(DSPs),whicharespecializedmicrocomputers.Theyarebasedonareducedinstructionsetcomputer(RISC)paradigmwithan

architectureconsistingofatleastonefastarraymultiplier(e.g.16_16-bitto24_24-bitfixedpointor32-bitfloatingpoint),withanextendedword-widthaccumulator.ThedisadvantagewiththeprogrammableDSPsisthatofspeed,astheyhaveafixedarchitecturetomaptherequiredapplication.Nowadays,researchesonprogrammabledevicesmakeitpossibletoimplementedgedetectionalgorithmsonthesedeviceswhosedesignturn-aroundtimevariesfromafewhourstoafewdays.

Duringrecentyears,fieldprogrammablegatearrays(FPGAs)havebecomethedominantformofprogrammablelogic(Jenkins1994,Smith1997,WesteandEshraghian2000,Wakerly2002).Incomparisontopreviousprogrammabledevices

likeprogrammablearraylogic(PAL)andcomplexprogrammablelogicdevices(CPLDs),FPGAscanimplementfarlargerlogicfunctions.FPGAsupports

sufficientlogictoimplementcompletesystemsandsub-systems.FPGAexploitstheincreasingcapacityofintegratedcircuitstoprovidedesignerswithreconfigurablelogicthatcanbeprogrammedonanapplication-specificbasis.Thisdrasticallyincreasesflexibilityinboththedesignprocessandthefinalartifactbypermittingoneboard-leveldesigntoperformmanyfunctions,ortobeupgradedinthefield.FPGAsperformanceissuperiortothatofprogrammableDSPs,astheysupporttheuseof

highlyparallelarchitectures.ThoughthedesigneffortofanFPGAsolutionisgreaterthanthatforaprogrammableDSP,theadoptionofhardwaredescriptionlanguagesandflexiblecorecomponentlibraries(suchasXilinx’scoretools)isreducingthiseffortsignificantly.Moreover,increaseinembeddedmemoryenablesthehighprocessorcountwithoutlimitationsofI/O,lowpackagecountand

flexibilityasthewholearchitecturemaybereprogrammedwithouttheconstraintsoffixedmemorynumber.

Inthispaper,aFPGA-basedimplementationofSobeledgedetectionalgorithmhasbeenproposed.ThechoiceofaSobeledgedetectionoperatorismotivatedbythefactthattheyincorporateboththeedgedetectionandasmoothingoperatortoprovidegoodedgedetectioncapabilityinnoisyconditions.Thedesignisbasedonparallelmoduleswithinternalpipelineoperationinordertospeed-upitsoperation.Applicationstargetedareinhighspeedcomputervision(i.e.morethan100imagespersecond).ThesoftwareplatformusedisXilinxISE7.1ifromXilinxCorporationwithsimulationonModelsimSE5.8csimulatorandsynthesisonLeonardospectrum2004,bothfrommentorGraphicsCorporation.ArchitectureisvalidatedforXC3S1500-5FG320devicefromXilinx’sSpartan3FPGAfamily.

2.AlgorithmofSobeledgedetector

Theedgedetectionalgorithmsarebasicallydividedintotwosteps.Thefirststepof

edgedetectionrequirestheevaluationofderivativesoftheimageintensity.Tocharacterizethetypesofintensitychanges,derivativesofdifferenttypeandordermaybeneeded,possiblyatdifferentscales.TheSobeledgedetectionoperatorisbasedonafirstderivativebasedoperation,showninfigure1.Thealgorithmsoffirstderivativeorfirstdifferencebasedoperatorarethesimplest,thatiswhytheyareselectedforimplementationonthehardwaredevice.

Figure1.OperationoftheSobel-edgedetectionalgorithm

Consideru(p,q)tobethetwodimensionaledgesegment.Itisknownthatorthogonaledgegradientcanbeformedbyrunningdifferentpixelsinhorizontalandverticaldirections.Itisdefinedinmagnitudeformasthesumofthemagnitudesof

verticalandhorizontalgradient

Inmachinevisionaswellasinmostnumericalproblems,thedataisnoisy.

Noiseinthephototransductionprocessisultimatelyunavoidable.Sensornoisearises,atleastinpart,fromquantumfluctuationsinthenumberofabsorbedphotonspersensorandunittime.Thisrepresentsafundamentallimitationforrealtimeimagery.ItiscriticallyimportantthattheresultsofnumericaloperationsperformedonthedataFigure1.OperationoftheSobel-edgedetectionalgorithm.

FPGA-basedarchitectureforSobeloperator891

arenottoosensitivetonoise.Itisalsowellknownthatdifferentiationisnotrobustagainstnoise.Evenasmallamountofnoisemaydisruptdifferentiation.Considerafunctionf(t)and^fetT_fetTt_sin!

t.f(t)maybecloseto^fetT,butf0(t)maybequite

differentfrom^f0etTif!

islarge.Thisshowsthatgradientbasedoperationsarehighlysusceptibletonoiseandrequirenoisesmoothingbeforefurtherprocessing.Sobeloperationsaddressthisproblembyincorporatingdifferencingandsmoothingoperationinthesinglekernel

Theweightsusedinthehorizontalandverticalneighbourhoodareusedfornoisesmoothingbygivingmoreimportancetoneighbourhoodpixels.Thereasonforchoosingthe3_3neighbourhoodistomaketheoperatorlesssensitivetonoise.Thisoperatorperformsdifferencinginonedimensionandweightedspatialaveraginginanotherforgettingasmoothededge.

Thefinalstepofthisoperationistofilterouttheedgepixelsfromnon-edgepixelsbycomparingitwithapredeterminedthreshold.Thechoiceofthresholdistotallyapplicationdependent.

3.Proposedarchitecture

Theproposedarchitectureisshowninfigure2.Extraflip-flopsareusedtospeed-uptheprocess.Theseareshownbylightboxeswithedge-triggeredbehaviour.Theinputscomingtotheaddressgeneratorschemeare8-bitpixelvaluesandawrite

enablebit.The3_3kerneloperationresultsinreductionofimagedimensionfrom

Figure2.ProposedarchitectureforSobeledgedetectionoperator

[M,N]to[M-2,N-2].So,theimagematrixhadtobepaddedfirsttoincreaseitssizefrom[512,512]to[514,514].Toaccommodatethisimagematrix,amemoryof514_38byteshasbeendeclared.Whenthewriteenablesignaloftheaddressgeneratorblockisasserted,writingtothismemoryhasresultedinthestorageof38rowsand514columnsoftheimage.Whenthreerowsarecompletelyfilled,thereadenablebitisassertedwhichstartstheprocessingofpixelvalues.After38rowsoftheimagearecompletelyfilled,theremainingrowscanbefilled.Inthesameway,thewholeimageiswritefirstandthenreadtoprocess.Duringthereadingprocess,the3_3kernelmovesinzigzagpatternwhichgivestheoutputsoftheblockaseightpixelvalueswhichareassignedfrommemoryas:

Thepointeriincrementsfrom0to18501.Anotherpointerkisdeclaredwhichincrementsoneachshiftofthekernelinhorizontaldirection.

Afterprocessingof512pixels,thispointerkshiftsthe3_3kerneldownwardbyonerow.Itssyntaxis:

always@(posedgeclock)

Theoutputofthedecoderistwelvepixelvalueswhichthengointodifferentweighingblockswheretheweightsof1,2,1and_1,_2,_1areappendedtothem.Generally,divisionisdifficulttoachieveondigitalhardware,soitisadvantageoustouseassmalladivisionaspossible.Wecaneasilyimplementthe

divideby2anddivideby4processeson

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2