当前位置: 首页>>代码示例>>C++>>正文


C++ ParameterSet::SetParameterByIndex方法代码示例

本文整理汇总了C++中ParameterSet::SetParameterByIndex方法的典型用法代码示例。如果您正苦于以下问题:C++ ParameterSet::SetParameterByIndex方法的具体用法?C++ ParameterSet::SetParameterByIndex怎么用?C++ ParameterSet::SetParameterByIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ParameterSet的用法示例。


在下文中一共展示了ParameterSet::SetParameterByIndex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: TestDetection

void TestDetection()
{
	DetectionModule *pDM = new DetectionModule();

	pDM->Init("E:\\ImDetection\\ImDetectionApp\\Test\\Rscreen_shortFinger.avi");

	pDM->DoDetection();

	SimpleFingerDetectionResultSet resultSet;

	pDM->GetDetectionResult(resultSet);

	for(int x=0; x<resultSet.m_nFrameNum; x++)
	{
		SimpleDetectionResult* &currDR = resultSet.m_arrSimpleDR[x];
		WCHAR str[MAX_PATH];
		swprintf(str, L"[shooting] %d , fingerNum = %d \n",x,currDR->GetFingerNum());
		//cout << str <<endl;
		OutputDebugStringW(str);
		//_DPRINTF((L"%d , fingerNum = %d \n",x,m_pDetectionModule->m_arrDetectionResults[x]->m_nFingerNum));
	}

	ParameterSet paramSet;
	pDM->GetParameters(paramSet);

	for(int x=0; x<paramSet.GetParamNum(); x++)
	{
		cout << "x = " <<x <<"name = " << paramSet.GetParameterName(x) << "value = " << paramSet.GetParameterByIndex(x) <<endl;
		//printf("%d, %s %d \n",x,paramSet.GetParameterName(x),paramSet.GetParameter(x));
	}

	paramSet.SetParameterByIndex(4,60/255.0);

	pDM->DoDetection();

	delete pDM;

}
开发者ID:shooting12,项目名称:imtop,代码行数:38,代码来源:Test_main.cpp


注:本文中的ParameterSet::SetParameterByIndex方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。