本文共 398 字,大约阅读时间需要 1 分钟。
Qt动态加载动态库
1、2017年8月2日15:44:16。
#includeQLibrary lib("JutzeImageProc.dll"); if (lib.load()) { typedef int (*CalVolumeFunType)(const cv::Mat & , const cv::Mat & , double & , double & , double & );//定义函数指针 CalVolumeFunType CalVolumeFun = (CalVolumeFunType)lib.resolve("CalVolume"); if (CalVolumeFun) { CalVolumeFun(HeightSrcMat, MaskMat, dArea, dVolume, dAveHeight); } lib.unload(); }
转载地址:http://fswci.baihongyu.com/