欢迎来到天天文库
浏览记录
ID:9304978
大小:622.50 KB
页数:48页
时间:2018-04-27
《一步一步教你用vc++编写opecv和mfc下使用opencv》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Programmingcomputervisionapplications:Astep-by-stepguidetotheuseofMicrosoftVisualC++andtheIntelOpenCVlibraryRobertLaganièreVIVAlabUniversityofOttawaTheobjectiveofthistutorialistoteachyouhowtoprogramcomputervisionapplications,i.e.applicationswhereyouhavetoprocessimagesand(video)sequenc
2、esofimages.YouwilllearnhowtouseMSVisualC++andIntelOpenCVtobuildyourapplications.Sincethisisabeginner’sguide,effortshavebeenmadetodescribeindetailsalltherequiredstepstoobtaintheshownresults.SpecialemphasishasbeenputongoodprogrammingprinciplesthroughtherecoursetotheObjectOrientedparadig
3、mandtheuseofsomedesignpatterns.Allthesourcecodespresentedinthetutorialareavailablefordownload.Yourcommentsandquestionsarewelcome;however,becauseofthenumberofemailsIreceive,Icannotguaranteethattheywillallbeanswered.TheOpenCVversion1.0hasbeenusedtoproducetheexamplesbelowwithMicrosoftVis
4、ualStudio2005underWindowsXP.Note:thistutorialreplacesapreviousthatisstillonlineatthisaddress.0.TheOpenCVlibraryOpenCVistheopensourcelibraryofferedbyIntelthroughaBSDlicenseandthatisnowwidelyusedinthecomputervisioncommunity.OpenCVcanbeeasilyinstalledfromSourceforge.net.Theinstallerwillc
5、reateanOpenCVdirectoryunderyourProgramFiles.Thisdirectorycontainsallthefilesneededtocreateyourapplications.Lookatthedocsdirectory,youwillfindthereaveryusefuldocumentation.1.CreatingaDialog-basedapplicationAllapplicationspresentedherewillbesimpledialog-basedapplications.Thiskindofappli
6、cationscaneasilybecreatedwithVisualC++andconstitutesagoodwaytoobtainapleasantinteractiveapplication.OnyouVisualC++menubar,selecttheFile
7、New
8、Project…option,chooseMFCApplicationandselectanameforyourapplication(herecvision).WithVisualC++,youcanconstructasolutionmadeofseveralprojects(each
9、projectisbasicallyoneprogram).Soifyoubuildamulti-programapplication,forexampleaclientandaserverapplication,solutionsareveryusefulbecauseyoucangroupyourprojectstogetherandhavethosesharingfilesandlibraries.Usuallyyoucreateonemasterdirectoryforyoursolutionthatcontainsallthedirectoriesofy
10、ourpr
此文档下载收益归作者所有