机械外文翻译文献翻译原型基于颜色的图像检索与MATLABWord文档格式.docx
《机械外文翻译文献翻译原型基于颜色的图像检索与MATLABWord文档格式.docx》由会员分享,可在线阅读,更多相关《机械外文翻译文献翻译原型基于颜色的图像检索与MATLABWord文档格式.docx(14页珍藏版)》请在冰豆网上搜索。
Abstrac
Content-basedretrievalof(image)databaseshasbecomemorepopularthanbefore.Algorithmdevelop-mentforthispurposerequirestesting/simulationtools,buttherearenosuitablecommercialtoolsonthemarket.
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’propertiescanbemadelanguageindependent.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/bincombinationrequiresitsownhistogramsandthesecanbemadeonlywithanexhaustivemethod(pixelbypixel).Histogramcalculationtakes½
-5minutesperimage,each
approximately320×
240pixels,dependingonthecomplexityofthecolorspaceon150MHzPentium.Thusitisnotreasonabletolettheuserselectabinnumberfreely,especiallyinthecaseoflargedatabases.
Thefunctionshavebeennamedsothatthenamescontaininformationofthecolorspaceused,thepurposeofthefunctionsandthenumberofusedbins.Somefunctions,forexampleimage_pos,havebeenusedbymanyorallmainfunctionsandthesefunctionshavenotbeennamedasdescribedabove.
Themainfunctionchecks,ifthefunctioncalliscorrect.Ifthequeryimage’snamedoesn’tcontainapath,thefunctionassumesthattheimageissituatedinthedatabasedirectory.Inadditiontothis,themainfunctionchecks,ifthequeryimagealreadyhasahistograminthecurrentlyuseddatabase.Iftherequiredhistogramisnotthere,theimageread(forexamplehs27read)functioniscalled.Thisfunctionalsonormalizespixelvaluesandarrangesimagematrixdatatoavectorformat