#include "main.h"
#include <iostream>
#include "opencv2\opencv.hpp"
using namespace std;
using namespace cv;
//void DLL_EXPORT test(uchar* p)
//uchar* DLL_EXPORT test(void)
//void DLL_EXPORT test(uchar* p, int x, int y)
uchar* DLL_EXPORT test(void)
{
string ImageName("SOP5_10.5mm_25mm_5+5");
Mat OriginalImg = imread(ImageName+".bmp", 0 );
// imshow("aa",OriginalImg);
return OriginalImg.data;
}
I2luY2x1ZGUgIm1haW4uaCIKI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSAib3BlbmN2MlxvcGVuY3YuaHBwIgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKdXNpbmcgbmFtZXNwYWNlIGN2OwoKLy92b2lkIERMTF9FWFBPUlQgdGVzdCh1Y2hhciogcCkKLy91Y2hhciogRExMX0VYUE9SVCB0ZXN0KHZvaWQpCi8vdm9pZCBETExfRVhQT1JUIHRlc3QodWNoYXIqIHAsIGludCB4LCBpbnQgeSkKdWNoYXIqICBETExfRVhQT1JUIHRlc3Qodm9pZCkKewoKICAgIHN0cmluZyBJbWFnZU5hbWUoIlNPUDVfMTAuNW1tXzI1bW1fNSs1Iik7CgogICAgTWF0IE9yaWdpbmFsSW1nID0gaW1yZWFkKEltYWdlTmFtZSsiLmJtcCIsIDAgKTsKCi8vICAgIGltc2hvdygiYWEiLE9yaWdpbmFsSW1nKTsKICAgIHJldHVybiBPcmlnaW5hbEltZy5kYXRhOwp9Cg==