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

上传人:b****2 文档编号:24299816 上传时间: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

《基于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-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1