原型基于颜色的图像检索及MATLABWord文档格式.docx

上传人:b****2 文档编号:3594138 上传时间:2023-05-02 格式:DOCX 页数:19 大小:770.51KB
下载 相关 举报
原型基于颜色的图像检索及MATLABWord文档格式.docx_第1页
第1页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第2页
第2页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第3页
第3页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第4页
第4页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第5页
第5页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第6页
第6页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第7页
第7页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第8页
第8页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第9页
第9页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第10页
第10页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第11页
第11页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第12页
第12页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第13页
第13页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第14页
第14页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第15页
第15页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第16页
第16页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第17页
第17页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第18页
第18页 / 共19页
原型基于颜色的图像检索及MATLABWord文档格式.docx_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

原型基于颜色的图像检索及MATLABWord文档格式.docx

《原型基于颜色的图像检索及MATLABWord文档格式.docx》由会员分享,可在线阅读,更多相关《原型基于颜色的图像检索及MATLABWord文档格式.docx(19页珍藏版)》请在冰点文库上搜索。

原型基于颜色的图像检索及MATLABWord文档格式.docx

Abstract

Content-basedretrievalof(image)databaseshasbeemorepopularthanbefore.Algorithmdevelop-mentforthispurposerequirestesting/simulationtools,buttherearenosuitablemercialtoolsonthemarket.

Asimulationenvironmentforretrievingimagesfromdatabaseaccordinghistogramsimilaritiesispresentedinthispaper.Thisenvironmentallowstheuseofdifferentcolorspacesandnumbersofbins.ThealgorithmsareimplementedwithMATLAB.Eachcolorsystemhasitsownm-files.

Thephasesofthesoftwarebuildingprocessarepre-sentedfromsystemdesigntographicaluserinterface(GUI).ThefunctionalityisdescribedwithsnapshotsofGUI.

1.Introduction

Nowadaystherearethousandsorhundredsofthousandsofdigitalimagesinanimagedatabase.Iftheuserwantstofindasuitableimageforhis/herpurposes,he/shehastogothroughthedatabaseuntilthecorrectimagehasbeenfoundoruseareferencebookorsome“intelligent”program.Videoondemand(VoD)servicesalsorequiresanintelligentsearchsystemforend-users.VoDsystems’searchmethodsdifferslightlyfromimagedatabase’smethods.

Areferencebookisasuitableoption,iftheimagesarearrangedwithausefulmethod,forexample:

1)categories:

animals,flags,etc,2)names(requiresagoodnamingtechnique)or3)dates.Anexperiencedusercanusethesesystemsaswellastextualsearches(keywordshavetobeinsertedinadatabase)efficiently.Therearesituationswhenamulti-languagesystemhastobeused.Therealanguageindependentsearchsystem’sbestpropertiescanbeutilized.Atoolwhichisbasedontheimages’propertiescanbemade

languageindependent.Thesepropertiescanbeforexamplecolor,shape,texture,spatiallocationofshapeetc.

IntheMuVi-project[1]thiskindoftoolisunderconstruction.Itwillcoverthepropertiespresentedabove.Researchworkoncontent-basedimageretrievalhasbeendonein[2–6].Thesystem,whichispresentedinthispaper,isasimulationenvironment,whereMuVi’scolorcontentbasedretrievalhasbeendevelopedandtested.

2.Systemdevelopment

MATLABisanefficientprogramforvectorandmatrixdataprocessing.Itcontainsreadyfunctionsformatrixmanipulationsandimagevisualizationandallowsaprogramtohavemodularstructure.BecauseofthesefactsMATLABhasbeenchosenasprototypingsoftware.

2.1Systemdesign

Beforeanym-fileshavebeenwritten,thesystemdesignhasbeendone.AsystemdesignfortheHSV(hue,saturationandvalue)colorsystembasedretrievalprocessispresentedinFigure1.Similardesignhasbeendoneforallusedcolorsystems.

Figure1:

FunctionchartforHSVcolorspacewith27binshistogram.

Tesths27isthemainfunctionforthiscolorsystemandthisnumberofbins.Itcallsotherfunctions(hs27read,dif_hsvandimage_pos)whenneeded.Each

colorsystemhasamainfunctionofitsownandvariablenumber(2–3)ofsub-functions.Ifthereisnoneedforcolorspaceconversionthereare2functions,otherwise3functionsonthefirstbranchofthefunctionchart.

Thefunctioncallofthemainfunctionis:

matches=tesths27(imagen,directory,num)

Thevariableimagenspecifiesthequeryimage’snameandpath.Thedirectoryisapathoftheimagedatabaseandnumisadesirednumberofretrievedimages.

2.2Functions

Atthismomenttherearefunctionsimplementedforfourcolorspaces:

HSV,L*a*b*,RGBandXYZ[7].Eachcolorspacehasfrom2to4implementationsfordifferentnumbersofbins.Therearealtogether14mainfunctions.

Forsomecolorsystemsitispossibletomakethesefunctionsdynamic,i.e.dynamichistogramcalculation.Everycolorsystem/binbinationrequiresitsownhistogramsandthesecanbemadeonlywithanexhaustivemethod(pixelbypixel).Histogramcalculationtakes½

-5minutesperimage,each

approximately320×

240pixels,dependingontheplexityofthecolorspaceon150MHzPentium.Thusitisnotreasonabletolettheuserselectabinnumberfreely,especiallyinthecaseoflargedatabases.

Thefunctionshavebeennamedsothatthenamescontaininformationofthecolorspaceused,thepurposeofthefunctionsandthenumberofusedbins.Somefunctions,forexampleimage_pos,havebeenusedbymanyorallmainfunctionsandthesefunctionshavenotbeennamedasdescribedabove.

Themainfunctionchecks,ifthefunctioncalliscorrect.Ifthequeryimage’snamedoesn’tcontainapath,thefunctionassumesthattheimageissituatedinthedatabasedirectory.Inadditiontothis,themainfunctionchecks,ifthequeryimagealreadyhasahistograminthecurrentlyuseddatabase.Iftherequiredhistogramisnotthere,theimageread(forexamplehs27read)functioniscalled.Thisfunctionalsonormalizespixelvaluesandarrangesimagematrixdatatoavectorformat.Afterthatstageacolorspaceconversionfunction(ifneeded)iscalled.Finallyaquantizationfunctionbuildsthehistogramwiththecorrectnumberofbins.

Thehistogramwillthenbesavedintothedatabasedirectory.Ifthehistogramalreadyexiststhere,thethreepreviousstepswillnotbeexecuted.Nowthequeryimagehasbeenanalyzed.Thenthemainfunctionwillgothroughallimagesinthedatabasedirectorywithanalmostsimilaralgorithmasinthecaseofthequeryimage.Thedifferenceisthatnowtherewillbea

histogramdifferencecalculationbetweenthequeryimage’sandcurrentimage’shistogram.Finallytheimage_posfunctionwillbeusedtoputaqueryimageandthedesirednumberofbestmatchimagesonthedisplay.

2.3Linking

Itisnotpossibletouseaprogrambeforethemainfunctionandsub-functionsareconnectedtoeachother.Themainfunctionwillbecalledfromthemandlineorthroughthegraphicaluserinterface,whichwillbepresentedlaterinthispaper.Inbothcasesthefunctioncallwillcontainthesamearguments.Formulti-levelsearchpurposesseparatemainfunctionshavebeenimplemented,butitispossibletoutilize“normal”functionsandaddoneparameter,wherethebestmatchesarraycanbetransferredforsecondastageparisonfunction.

Themainfunctioncallsanimagereadfunctionwiththeimage’sname.Thehistogramwillbereturnedtothemainfunction.Ifacolorspaceconversionisneeded,theconversionfunctionwillbecalledfromthereadfunctionwithr,gandb–vectors.Thehistogramwillbereturnedtothecallingfunction.Finallythehistogrambuildfunctionwillbecalledwithconvertedcolorvectors.Thisfunctionreturnsaquantizedhistogram,whichwillgothroughallfunctionsuntilitachievesthemainfunction.

Themainfunctioncallsthehistogramdifferencefunctionwithtwohistogramvectorsandwillgetadifferencevalueasaresponse.ThedifferencefunctionusesEuclidean-distancecalculation,butitcanbeeasilychangedto

anotheralgorithmduetothemodularityoftheprogram.Ifthedifferenceissmallerthanlargestdifferenceonabestmatchtable,thecurrentresultwillbewrittenoverthelastresultonthebestmatchtable.Afterthatthetableisarrangedagaininanascendingorderofdistance.Whenalltheimageshavebeenanalyzed,thesortedbestmatchtable,thenumberofdesiredoutputimages,thequeryimage’sname,thesearchimage’spathandthedatabase

patharetransferredtotheimage_posfunction.Thesevaluescanbetransferredintolargerponents(vectors/containers).Nowtheprogramworksfasterwithseveralinputarguments,becausethereisnoneedfor

pickingupvariablesfromacontainer.

2.4Graphicaluserinterface

Thegraphicaluserinterface(GUI)isanimportantpartofsoftwaredevelopment.ThedesigningoftheGUIhavetosolvethefollowingproblems:

learningtime,speedofperformance,rateoferrorsbyusers,retentionovertime,andsubjectivesatisfaction[9].Thissoftwareis,atthemoment,intendedtobeusedonlyfortestingpurposes.Themostimportantpropertyofthissoftwareisthattheresultsofdifferenttestqueriescanbeseenquicklyandthe

resultscanbesavedsafelyonadisk.Thusthevisuallayoutisnotasimportantasincaseofamercialsoftwareproduct.

InFigure2thefirstscreenonGUIispresented.Thepurposesofthebuttons,menusandotherponentswillbepresentedlater.Ifthissoftwareisdevelopedintoamercialproduct,themenubarwillbedisabledinthefutureandtheexitandhelpbuttonswillbeaddedonthecanvas.

Figure2:

GUIbeforethesearchimageselection.

InFigure3thesearchscreenispresentedjustbeforestartingasearch.Theuserisshownasearchimage,andinthiswayhe/shecanbesurethatthesearchwillbemadewiththecorrectimage.

Figure3:

GUIjustbeforerunningaquery.

TheresultsofthequerywillbepresentedonthescreenintheformatwhichispresentedinFigure6.

3.Usingthesoftware

ThefirstscreenhasalreadybeenpresentedinFigure2.Theusercanchoosefrompop-upmenus(seeFigure4),ifthesearchismadewithoneacolorsystemorasamulti-levelsearch.Inaone-levelsearcharoughlyquantizedoramoreaccuratehistogramisusedinoneloop(onecolorsystem).

Figure4:

Colorsystemselectionfromapopupmenu.

Thesecondmenuisdisabledbecauseaone-levelsearchisselected.

Inamulti-levelsearchtwodifferentcolorsystems/histogramsareused.Duringthefirstlooptheroughlyquantizedhistogramsareusedandduringthesecondloop.

themoreaccuratehistogramsareutilizedforthebestmatchesfromthefirstloop.Thecolorsystemonthesecondloopcanbeeitherthesameasonthefirstlooporadifferentone.Forquerieswithone-levelsearchtheselectionofasecondcolorsystemisdisabled.Theusercanselectthenumberofretrie

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

当前位置:首页 > 人文社科

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

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