军械工程学院学报
軍械工程學院學報
군계공정학원학보
Journal of Ordnance Engineering College
2015年
5期
52-56
,共5页
张岩%李建增%李德良%周子栋%杜玉龙
張巖%李建增%李德良%週子棟%杜玉龍
장암%리건증%리덕량%주자동%두옥룡
混合编程%图像处理%VS%OpenCV%MATLAB
混閤編程%圖像處理%VS%OpenCV%MATLAB
혼합편정%도상처리%VS%OpenCV%MATLAB
hybrid programming%image processing%VS%OpenCV%MATLAB
针对目前利用 Visual Studio同时调用 OpenCV与 MATLAB进行图像处理时,配置复杂、编译繁琐、封装困难等问题,利用执行文件的调用和文本文件的编写,提出一种简单有效的图像处理混合编程的方法。分别使所调用OpenCV的C++文件与 MATLAB的 M文件编译成 EXE可执行文件,参数传递用文本文件的读写来运行;再利用 Visual Studio的 MFC应用程序框架编写界面,通过编译好的能够运行的文件完成程序的编写。实验结果证明,该方法无需复杂配置,编译封装简单,保证了程序代码的保密性。
針對目前利用 Visual Studio同時調用 OpenCV與 MATLAB進行圖像處理時,配置複雜、編譯繁瑣、封裝睏難等問題,利用執行文件的調用和文本文件的編寫,提齣一種簡單有效的圖像處理混閤編程的方法。分彆使所調用OpenCV的C++文件與 MATLAB的 M文件編譯成 EXE可執行文件,參數傳遞用文本文件的讀寫來運行;再利用 Visual Studio的 MFC應用程序框架編寫界麵,通過編譯好的能夠運行的文件完成程序的編寫。實驗結果證明,該方法無需複雜配置,編譯封裝簡單,保證瞭程序代碼的保密性。
침대목전이용 Visual Studio동시조용 OpenCV여 MATLAB진행도상처리시,배치복잡、편역번쇄、봉장곤난등문제,이용집행문건적조용화문본문건적편사,제출일충간단유효적도상처리혼합편정적방법。분별사소조용OpenCV적C++문건여 MATLAB적 M문건편역성 EXE가집행문건,삼수전체용문본문건적독사래운행;재이용 Visual Studio적 MFC응용정서광가편사계면,통과편역호적능구운행적문건완성정서적편사。실험결과증명,해방법무수복잡배치,편역봉장간단,보증료정서대마적보밀성。
To solve the problems of complex configuration, compilation with too many trivial details and encapsulation difficulties in the present use of Visual Studio calling OpenCV and MATLAB in image processing, we propose a simple and effective method of hybrid programming that uses call of the executable file and writing text file.It compiles the C++ file of OpenCV and M file of MATLAB to an EXE one,performs parameter passing by the read-write of text file,then utilizes the MFC application framework written interface of Visual Studio to complete the writing of the program by calling the compiled executable file.Experimental results show that the method can not only simplify the compilation and encapsulation but also ensure the portability of the program code without complex configuration.