|
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);
|
|