intiRet=eyemTrackFeature(tpImages[0],tpImages[i],hGlobal,tpRois.Count,Marshal.UnsafeAddrOfPinnedArrayElement(iArrRes,0)/* new IntPtr((void*)ipResults)*/);
//}
//过滤出有效信号(连续存在数帧以上才算,防止误触发),或者直接用iArrRes的值作为信号
toSingleFilter(iArrRes,refbitSingle);
for(intj=0;j<bitSingle.Length;j++)
{
//设定信号持续帧数阈值
if(bitSingle[j]>15)
{
//检测到信号
Console.WriteLine("检测到:"+j+"处有信号");
}
}
}
//释放资源
Marshal.FreeHGlobal(hGlobal);
hObject.Dispose();
}
//for (int i = 1; i < fileNames.Length; i++)
//{
// EyemImage imageNext = new EyemImage();
// iRet = eyemImageRead(fileNames[i], -1, out imageNext);
2>------ 已启动生成: 项目: eyemLib-Sharp, 配置: Debug Any CPU ------
2>C:\Users\张士柳\OneDrive\程序\VSProject\eyemLib\eyemLib-Sharp\EyemLib.cs(719,23,719,29): warning CS0219: The variable 'image2' is assigned but its value is never used
2>C:\Users\张士柳\OneDrive\程序\VSProject\eyemLib\eyemLib-Sharp\EyemLib.cs(894,20,894,27): warning CS0219: The variable 'pNumObj' is assigned but its value is never used