⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iplwrap.c

📁 微软的基于HMM的人脸识别原代码, 非常经典的说
💻 C
📖 第 1 页 / 共 4 页
字号:
    setArg(2, EiC_Cfunc_2, int ,x2);
    setArg(3, EiC_Cfunc_2, int ,x3);

    EiC_callBack(EiC_Cfunc_2);
}

static void * EiC_Cfunc_3 = NULL;
static void  __stdcall MiddleOne_3(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_3, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_3, int ,x1);
    setArg(2, EiC_Cfunc_3, int ,x2);
    setArg(3, EiC_Cfunc_3, int ,x3);

    EiC_callBack(EiC_Cfunc_3);
}

static void * EiC_Cfunc_4 = NULL;
static void  __stdcall MiddleOne_4(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_4, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_4, int ,x1);
    setArg(2, EiC_Cfunc_4, int ,x2);
    setArg(3, EiC_Cfunc_4, int ,x3);

    EiC_callBack(EiC_Cfunc_4);
}

static void * EiC_Cfunc_5 = NULL;
static void  __stdcall MiddleOne_5(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_5, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_5, int ,x1);
    setArg(2, EiC_Cfunc_5, int ,x2);
    setArg(3, EiC_Cfunc_5, int ,x3);

    EiC_callBack(EiC_Cfunc_5);
}

static void * EiC_Cfunc_6 = NULL;
static void  __stdcall MiddleOne_6(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_6, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_6, int ,x1);
    setArg(2, EiC_Cfunc_6, int ,x2);
    setArg(3, EiC_Cfunc_6, int ,x3);

    EiC_callBack(EiC_Cfunc_6);
}

static void * EiC_Cfunc_7 = NULL;
static void  __stdcall MiddleOne_7(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_7, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_7, int ,x1);
    setArg(2, EiC_Cfunc_7, int ,x2);
    setArg(3, EiC_Cfunc_7, int ,x3);

    EiC_callBack(EiC_Cfunc_7);
}

static void * EiC_Cfunc_8 = NULL;
static void  __stdcall MiddleOne_8(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_8, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_8, int ,x1);
    setArg(2, EiC_Cfunc_8, int ,x2);
    setArg(3, EiC_Cfunc_8, int ,x3);

    EiC_callBack(EiC_Cfunc_8);
}

static void * EiC_Cfunc_9 = NULL;
static void  __stdcall MiddleOne_9(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_9, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_9, int ,x1);
    setArg(2, EiC_Cfunc_9, int ,x2);
    setArg(3, EiC_Cfunc_9, int ,x3);

    EiC_callBack(EiC_Cfunc_9);
}

static void * EiC_Cfunc_10 = NULL;
static void  __stdcall MiddleOne_10(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_10, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_10, int ,x1);
    setArg(2, EiC_Cfunc_10, int ,x2);
    setArg(3, EiC_Cfunc_10, int ,x3);

    EiC_callBack(EiC_Cfunc_10);
}

static void * EiC_Cfunc_11 = NULL;
static void  __stdcall MiddleOne_11(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_11, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_11, int ,x1);
    setArg(2, EiC_Cfunc_11, int ,x2);
    setArg(3, EiC_Cfunc_11, int ,x3);

    EiC_callBack(EiC_Cfunc_11);
}

static void * EiC_Cfunc_12 = NULL;
static void  __stdcall MiddleOne_12(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_12, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_12, int ,x1);
    setArg(2, EiC_Cfunc_12, int ,x2);
    setArg(3, EiC_Cfunc_12, int ,x3);

    EiC_callBack(EiC_Cfunc_12);
}

static void * EiC_Cfunc_13 = NULL;
static void  __stdcall MiddleOne_13(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_13, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_13, int ,x1);
    setArg(2, EiC_Cfunc_13, int ,x2);
    setArg(3, EiC_Cfunc_13, int ,x3);

    EiC_callBack(EiC_Cfunc_13);
}

static void * EiC_Cfunc_14 = NULL;
static void  __stdcall MiddleOne_14(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_14, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_14, int ,x1);
    setArg(2, EiC_Cfunc_14, int ,x2);
    setArg(3, EiC_Cfunc_14, int ,x3);

    EiC_callBack(EiC_Cfunc_14);
}

static void * EiC_Cfunc_15 = NULL;
static void  __stdcall MiddleOne_15(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_15, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_15, int ,x1);
    setArg(2, EiC_Cfunc_15, int ,x2);
    setArg(3, EiC_Cfunc_15, int ,x3);

    EiC_callBack(EiC_Cfunc_15);
}

static void * EiC_Cfunc_16 = NULL;
static void  __stdcall MiddleOne_16(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_16, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_16, int ,x1);
    setArg(2, EiC_Cfunc_16, int ,x2);
    setArg(3, EiC_Cfunc_16, int ,x3);

    EiC_callBack(EiC_Cfunc_16);
}

static void * EiC_Cfunc_17 = NULL;
static void  __stdcall MiddleOne_17(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_17, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_17, int ,x1);
    setArg(2, EiC_Cfunc_17, int ,x2);
    setArg(3, EiC_Cfunc_17, int ,x3);

    EiC_callBack(EiC_Cfunc_17);
}

static void * EiC_Cfunc_18 = NULL;
static void  __stdcall MiddleOne_18(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_18, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_18, int ,x1);
    setArg(2, EiC_Cfunc_18, int ,x2);
    setArg(3, EiC_Cfunc_18, int ,x3);

    EiC_callBack(EiC_Cfunc_18);
}

static void * EiC_Cfunc_19 = NULL;
static void  __stdcall MiddleOne_19(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_19, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_19, int ,x1);
    setArg(2, EiC_Cfunc_19, int ,x2);
    setArg(3, EiC_Cfunc_19, int ,x3);

    EiC_callBack(EiC_Cfunc_19);
}

static val_t eic_iplCreateTileInfo(void)
{
	val_t v;
	static int nb = 0;

	switch(nb)
	{
	case 0 :
	EiC_Cfunc_0 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_0,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 1 :
	EiC_Cfunc_1 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_1,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 2 :
	EiC_Cfunc_2 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_2,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 3 :
	EiC_Cfunc_3 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_3,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 4 :
	EiC_Cfunc_4 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_4,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 5 :
	EiC_Cfunc_5 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_5,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 6 :
	EiC_Cfunc_6 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_6,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 7 :
	EiC_Cfunc_7 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_7,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 8 :
	EiC_Cfunc_8 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_8,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 9 :
	EiC_Cfunc_9 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_9,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 10 :
	EiC_Cfunc_10 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_10,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 11 :
	EiC_Cfunc_11 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_11,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 12 :
	EiC_Cfunc_12 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_12,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 13 :
	EiC_Cfunc_13 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_13,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 14 :
	EiC_Cfunc_14 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_14,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 15 :
	EiC_Cfunc_15 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_15,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 16 :
	EiC_Cfunc_16 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_16,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 17 :
	EiC_Cfunc_17 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_17,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 18 :
	EiC_Cfunc_18 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_18,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	case 19 :
	EiC_Cfunc_19 = arg(0,getargs(),ptr_t).p;
	v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_19,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));
	break;
	}
	++nb;
	nb %= 20;

	return v;
}

static val_t eic_iplSetBorderMode(void)
{
	val_t v;

	iplSetBorderMode(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),int),
		arg(2,getargs(),int),
		arg(3,getargs(),int));

	return v;
}

static val_t eic_iplAnd(void)
{
	val_t v;

	iplAnd(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplDCT2D(void)
{
	val_t v;

	iplDCT2D(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int));

	return v;
}

static val_t eic_iplDecimateExt(void)
{
	val_t v;

	iplDecimateExt(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int),
		arg(4,getargs(),int),
		arg(5,getargs(),int),
		arg(6,getargs(),int),
		arg(7,getargs(),int),
		arg(8,getargs(),int));

	return v;
}

static val_t eic_iplAddSFP(void)
{
	val_t v;

	iplAddSFP(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),float));

	return v;
}

static val_t eic_iplEqualS(void)
{
	val_t v;

	v.ival = iplEqualS(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),int),
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplMaxFilter(void)
{
	val_t v;

	iplMaxFilter(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int),
		arg(4,getargs(),int),
		arg(5,getargs(),int));

	return v;
}

static val_t eic_iplCreateConvKernelChar(void)
{
	val_t v;

	v.p.ep = v.p.sp = v.p.p = iplCreateConvKernelChar(arg(0,getargs(),int),
		arg(1,getargs(),int),
		arg(2,getargs(),int),
		arg(3,getargs(),int),
		arg(4,getargs(),ptr_t).p,
		arg(5,getargs(),int));

	return v;
}

static val_t eic_iplXor(void)
{
	val_t v;

	iplXor(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplDeleteColorTwist(void)
{
	val_t v;

	iplDeleteColorTwist(arg(0,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplDilate(void)
{
	val_t v;

	iplDilate(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int));

	return v;
}

static val_t eic_iplCreateConvKernelFP(void)
{
	val_t v;

	v.p.ep = v.p.sp = v.p.p = iplCreateConvKernelFP(arg(0,getargs(),int),
		arg(1,getargs(),int),
		arg(2,getargs(),int),
		arg(3,getargs(),int),
		arg(4,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplRotate(void)
{
	val_t v;
    double d2 = arg(2,getargs(),double);
    double d3 = arg(3,getargs(),double);
    double d4 = arg(4,getargs(),double);

	iplRotate(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),double),
		arg(3,getargs(),double),
		arg(4,getargs(),double),
		arg(5,getargs(),int));

	return v;
}

static val_t eic_iplApplyColorTwist(void)
{
	val_t v;

	iplApplyColorTwist(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p,
		arg(3,getargs(),int));

	return v;
}

static val_t eic_iplSubtractS(void)
{
	val_t v;

	iplSubtractS(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int),
		arg(3,getargs(),int));

	return v;
}

static val_t eic_iplMirror(void)
{
	val_t v;

	iplMirror(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),int));

	return v;
}

static val_t eic_iplMpyRCPack2D(void)
{
	val_t v;

	iplMpyRCPack2D(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplAndS(void)
{
	val_t v;

	iplAndS(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),unsigned));

	return v;
}

static val_t eic_iplLShiftS(void)
{
	val_t v;

	iplLShiftS(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),unsigned));

	return v;
}

static val_t eic_iplConvertToDIBSep(void)
{
	val_t v;

	v.ival = iplConvertToDIBSep(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p,
		arg(3,getargs(),int),
		arg(4,getargs(),int));

	return v;
}

static val_t eic_iplContrastStretch(void)
{
	val_t v;

	iplContrastStretch(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplRGB2LUV(void)
{
	val_t v;

	iplRGB2LUV(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplGetCentralMoment(void)
{
	val_t v;

	v.dval = iplGetCentralMoment(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),int),
		arg(2,getargs(),int));

	return v;
}

static val_t eic_iplMultiply(void)
{
	val_t v;

	iplMultiply(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p,
		arg(2,getargs(),ptr_t).p);

	return v;
}

static val_t eic_iplExchange(void)
{
	val_t v;

	iplExchange(arg(0,getargs(),ptr_t).p,
		arg(1,getargs(),ptr_t).p);

	return v;
}

static void * EiC_Cfunc_20 = NULL;
static void  __stdcall MiddleOne_20(const IplImage *x0,  int x1, int x2, int x3 )
{
    setArg(0, EiC_Cfunc_20, const IplImage * ,x0);
    setArg(1, EiC_Cfunc_20, int ,x1);
    setArg(2, EiC_Cfunc_20, int ,x2);
    setArg(3, EiC_Cfunc_20, int ,x3);

    EiC_callBack(EiC_Cfunc_20);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -