//public static int GetLocalCountE(EyemImage eyem, EyemRect? tpRoi, string outfilename, double dOffset, int iWinSize, out string count, out EyemImage tpDstImg)
//{
// if (tpRoi == null) {
// var ntpRoi = new EyemRect();
// ntpRoi.iXs = 0;
// ntpRoi.iYs = 0;
// ntpRoi.iWidth = eyem.iWidth;
// ntpRoi.iHeight = eyem.iHeight;
// }
// count = "";
// int n;
// tpDstImg = new EyemImage();
// string pNumObj = null;
// setSkipProcessID(-1);
// n = eyemCountObject(eyem, tpRoi.Value, outfilename, dOffset, 0, 100, iWinSize, ref pNumObj, out tpDstImg);
//internal static extern int eyemCountObject(EyemImage tpSrcImg, string fileName, double dOffset, int iMinArea, int iMaxArea, int iWinSize, ref IntPtr pNumObj, out EyemImage tpDstImg);
//internal static extern int eyemCountObject(EyemImage tpSrcImg, EyemRect tpRoi, string fileName, double dOffset, int iMinArea, int iMaxArea, int iWinSize, ref string pNumObj, out EyemImage tpDstImg);