几何尺寸与公差论坛

 找回密码
 注册
查看: 335|回复: 0

c# WPF拼接界面如何调用opencv做拼接

[复制链接]
发表于 2024-8-28 19:16:47 | 显示全部楼层 |阅读模式
E:\igbt-framework\algorithm\code\JZIntelli.Alg\StitchWafer.cs
1.在c++ A库里 dllexport function
extern "C" __declspec(dllexport) int StitchOneByOne(StitchWafer * sw, const wchar_t* xmlpath, int count, uchar * indata, int width, int height, int channel, int& outwidth, int& outheight);
2. C# 算法B库里DllImport function from C++库
  [DllImport("StitchWafer.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl)]
        public static extern int StitchOneByOne(IntPtr sw, string xmlpath, int count, IntPtr indata, int width, int height, int channel, out int outwidth, out int outheight);
3.C# &WPF 界面 引用 B库
StitchOneByOne(ho_Image, fullImage, unitImages, unitRegions);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 02:10 , Processed in 0.034392 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表