• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ cvReadIntByName函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中cvReadIntByName函数的典型用法代码示例。如果您正苦于以下问题:C++ cvReadIntByName函数的具体用法?C++ cvReadIntByName怎么用?C++ cvReadIntByName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: cvOpenFileStorage

void GMG::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/GMG.xml", 0, CV_STORAGE_READ);
  
  initializationFrames = cvReadIntByName(fs, 0, "initializationFrames", 20);
  decisionThreshold = cvReadRealByName(fs, 0, "decisionThreshold", 0.7);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);
  
  cvReleaseFileStorage(&fs);
}
开发者ID:arlesfarias,项目名称:Project_M,代码行数:10,代码来源:GMG.cpp


示例2: LoadState

 virtual void LoadState(CvFileStorage* fs, CvFileNode* node)
 {
     CvFileNode* BlobListNode = cvGetFileNodeByName(fs,node,"BlobList");
     m_FrameCount = cvReadIntByName(fs,node, "FrameCount", m_FrameCount);
     m_NextBlobID = cvReadIntByName(fs,node, "NextBlobID", m_NextBlobID);
     if(BlobListNode)
     {
         m_BlobList.Load(fs,BlobListNode);
     }
 };
开发者ID:AlexandreFreitas,项目名称:danfreve-blinkdetection,代码行数:10,代码来源:blobtrackingauto.cpp


示例3: cvOpenFileStorage

void FrameDifferenceBGS::loadConfig()
{
    CvFileStorage* fs = cvOpenFileStorage("E:\\yzbx_programe\\QT\\qt_bgslibrary\\config\\FrameDifferenceBGS.xml", 0, CV_STORAGE_READ);

    enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
    threshold = cvReadIntByName(fs, 0, "threshold", 15);
    showOutput = cvReadIntByName(fs, 0, "showOutput", true);

    cvReleaseFileStorage(&fs);
}
开发者ID:yzbx,项目名称:qt-bgslibrary,代码行数:10,代码来源:FrameDifferenceBGS.cpp


示例4: cvOpenFileStorage

void StaticFrameDifferenceBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("../config/StaticFrameDifferenceBGS.xml", 0, CV_STORAGE_READ);
  
  enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
  threshold = cvReadIntByName(fs, 0, "threshold", 15);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:tfygg,项目名称:Computer-Vision,代码行数:10,代码来源:StaticFrameDifferenceBGS.cpp


示例5: cvOpenFileStorage

void DPWrenGABGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/DPWrenGABGS.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadRealByName(fs, 0, "threshold", 12.25f);
  alpha = cvReadRealByName(fs, 0, "alpha", 0.005f);
  learningFrames = cvReadIntByName(fs, 0, "learningFrames", 30);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:asus4,项目名称:ofxBGS,代码行数:11,代码来源:DPWrenGABGS.cpp


示例6: cvOpenFileStorage

void MixtureOfGaussianV2BGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/MixtureOfGaussianV2BGS.xml", 0, CV_STORAGE_READ);
  
  alpha = cvReadRealByName(fs, 0, "alpha", 0.05);
  enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
  threshold = cvReadIntByName(fs, 0, "threshold", 15);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:berlino,项目名称:traffic-counting,代码行数:11,代码来源:MixtureOfGaussianV2BGS.cpp


示例7: cvOpenFileStorage

void DPEigenbackgroundBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/DPEigenbackgroundBGS.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadIntByName(fs, 0, "threshold", 225);
  historySize = cvReadIntByName(fs, 0, "historySize", 20);
  embeddedDim = cvReadIntByName(fs, 0, "embeddedDim", 10);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:ajaxhe,项目名称:opencv-project,代码行数:11,代码来源:DPEigenbackgroundBGS.cpp


示例8: cvOpenFileStorage

void DPGrimsonGMMBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/DPGrimsonGMMBGS.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadRealByName(fs, 0, "threshold", 9.0);
  alpha = cvReadRealByName(fs, 0, "alpha", 0.01);
  gaussians = cvReadIntByName(fs, 0, "gaussians", 3);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:2php,项目名称:ShadowDetection,代码行数:11,代码来源:DPGrimsonGMMBGS.cpp


示例9: cvOpenFileStorage

void DPAdaptiveMedianBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("DPAdaptiveMedianBGS.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadIntByName(fs, 0, "threshold", 40);
  samplingRate = cvReadIntByName(fs, 0, "samplingRate", 7);
  learningFrames = cvReadIntByName(fs, 0, "learningFrames", 30);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:foss-transportationmodeling,项目名称:Vista-core-API,代码行数:11,代码来源:DPAdaptiveMedianBGS.cpp


示例10: cvOpenFileStorage

void LBSimpleGaussian::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/LBSimpleGaussian.xml", 0, CV_STORAGE_READ);
  
  sensitivity = cvReadIntByName(fs, 0, "sensitivity", 66);
  noiseVariance = cvReadIntByName(fs, 0, "noiseVariance", 162);
  learningRate = cvReadIntByName(fs, 0, "learningRate", 18);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:charithwije,项目名称:nooba-plugin-face_detection,代码行数:11,代码来源:LBSimpleGaussian.cpp


示例11: cvOpenFileStorage

void WeightedMovingMeanBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/WeightedMovingMeanBGS.xml", 0, CV_STORAGE_READ);
  
  enableWeight = cvReadIntByName(fs, 0, "enableWeight", true);
  enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
  threshold = cvReadIntByName(fs, 0, "threshold", 15);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);
  showBackground = cvReadIntByName(fs, 0, "showBackground", false);

  cvReleaseFileStorage(&fs);
}
开发者ID:arlesfarias,项目名称:Project_M,代码行数:12,代码来源:WeightedMovingMeanBGS.cpp


示例12: cvOpenFileStorage

void DPPratiMediodBGS::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/DPPratiMediodBGS.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadIntByName(fs, 0, "threshold", 30);
  samplingRate = cvReadIntByName(fs, 0, "samplingRate", 5);
  historySize = cvReadIntByName(fs, 0, "historySize", 16);
  weight = cvReadIntByName(fs, 0, "weight", 5);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:berlino,项目名称:traffic-counting,代码行数:12,代码来源:DPPratiMediodBGS.cpp


示例13: cvOpenFileStorage

  void PreProcessor::loadConfig()
  {
#if CV_MAJOR_VERSION < 4
    CvFileStorage* fs = cvOpenFileStorage("./config/PreProcessor.xml", 0, CV_STORAGE_READ);

    equalizeHist = cvReadIntByName(fs, 0, "equalizeHist", false);
    gaussianBlur = cvReadIntByName(fs, 0, "gaussianBlur", false);
    enableShow = cvReadIntByName(fs, 0, "enableShow", true);

    cvReleaseFileStorage(&fs);
#endif
  }
开发者ID:Nuzhny007,项目名称:bgslibrary,代码行数:12,代码来源:PreProcessor.cpp


示例14: cvOpenFileStorage

void WeightedMovingVarianceBGS::loadConfig()
{
    string xmlDirectory = QCoreApplication::applicationDirPath().toStdString() + "//WeightedMovingVarianceBGS.xml";
    const char *xmlDirect = xmlDirectory.c_str();
    CvFileStorage* fs = cvOpenFileStorage(xmlDirect, 0, CV_STORAGE_READ);

    enableWeight = cvReadIntByName(fs, 0, "enableWeight", true);
    enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
    threshold = cvReadIntByName(fs, 0, "threshold", 15);
    showOutput = cvReadIntByName(fs, 0, "showOutput", true);

    cvReleaseFileStorage(&fs);
}
开发者ID:meng-han,项目名称:Overflow,代码行数:13,代码来源:WeightedMovingVarianceBGS.cpp


示例15: cvOpenFileStorage

void T2FGMM_UV::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/T2FGMM_UV.xml", 0, CV_STORAGE_READ);
  
  threshold = cvReadRealByName(fs, 0, "threshold", 9.0);
  alpha = cvReadRealByName(fs, 0, "alpha", 0.01);
  km = cvReadRealByName(fs, 0, "km", 1.5);
  kv = cvReadRealByName(fs, 0, "kv", 0.6);
  gaussians = cvReadIntByName(fs, 0, "gaussians", 3);
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:charithwije,项目名称:nooba-plugin-face_detection,代码行数:13,代码来源:T2FGMM_UV.cpp


示例16: cvOpenFileStorage

void LBFuzzyGaussian::loadConfig()
{
    CvFileStorage* fs = cvOpenFileStorage("./config/LBFuzzyGaussian.xml", 0, CV_STORAGE_READ);

    sensitivity = cvReadIntByName(fs, 0, "sensitivity", 72);
    bgThreshold = cvReadIntByName(fs, 0, "bgThreshold", 162);
    learningRate = cvReadIntByName(fs, 0, "learningRate", 49);
    noiseVariance = cvReadIntByName(fs, 0, "noiseVariance", 195);

    showOutput = cvReadIntByName(fs, 0, "showOutput", true);

    cvReleaseFileStorage(&fs);
}
开发者ID:EkanshGupta,项目名称:bgslibrary,代码行数:13,代码来源:LBFuzzyGaussian.cpp


示例17: cvOpenFileStorage

void AdaptiveBackgroundLearning::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("AdaptiveBackgroundLearning.xml", 0, CV_STORAGE_READ);
  
  alpha = cvReadRealByName(fs, 0, "alpha", 0.05);
  limit = cvReadIntByName(fs, 0, "limit", -1);
  enableThreshold = cvReadIntByName(fs, 0, "enableThreshold", true);
  threshold = cvReadIntByName(fs, 0, "threshold", 15);
  showForeground = cvReadIntByName(fs, 0, "showForeground", true);
  showBackground = cvReadIntByName(fs, 0, "showBackground", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:Alphaproxima,项目名称:Crowd-Analysis,代码行数:13,代码来源:AdaptiveBackgroundLearning.cpp


示例18: cvOpenFileStorage

void LBMixtureOfGaussians::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/LBMixtureOfGaussians.xml", 0, CV_STORAGE_READ);
  
  sensitivity = cvReadIntByName(fs, 0, "sensitivity", 81);
  bgThreshold = cvReadIntByName(fs, 0, "bgThreshold", 83);
  learningRate = cvReadIntByName(fs, 0, "learningRate", 59);
  noiseVariance = cvReadIntByName(fs, 0, "noiseVariance", 206);
  
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:arlesfarias,项目名称:Project_M,代码行数:13,代码来源:LBMixtureOfGaussians.cpp


示例19: cvOpenFileStorage

void VuMeter::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("./config/VuMeter.xml", 0, CV_STORAGE_READ);
  
  enableFilter = cvReadIntByName(fs, 0, "enableFilter", true);
  
  binSize = cvReadIntByName(fs, 0, "binSize", 8);
  alpha = cvReadRealByName(fs, 0, "alpha", 0.995);
  threshold = cvReadRealByName(fs, 0, "threshold", 0.03);
  
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);

  cvReleaseFileStorage(&fs);
}
开发者ID:charithwije,项目名称:nooba-plugin-face_detection,代码行数:14,代码来源:VuMeter.cpp


示例20: cvOpenFileStorage

void FuzzyChoquetIntegral::loadConfig()
{
  CvFileStorage* fs = cvOpenFileStorage("../config/FuzzyChoquetIntegral.xml", 0, CV_STORAGE_READ);
  
  showOutput = cvReadIntByName(fs, 0, "showOutput", true);
  framesToLearn = cvReadIntByName(fs, 0, "framesToLearn", 10);
  alphaLearn = cvReadRealByName(fs, 0, "alphaLearn", 0.1);
  alphaUpdate = cvReadRealByName(fs, 0, "alphaUpdate", 0.01);
  colorSpace = cvReadIntByName(fs, 0, "colorSpace", 1);
  option = cvReadIntByName(fs, 0, "option", 2);
  smooth = cvReadIntByName(fs, 0, "smooth", true);
  threshold = cvReadRealByName(fs, 0, "threshold", 0.67);

  cvReleaseFileStorage(&fs);
}
开发者ID:tfygg,项目名称:Computer-Vision,代码行数:15,代码来源:FuzzyChoquetIntegral.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ cvRect函数代码示例发布时间:2022-05-30
下一篇:
C++ cvQueryFrame函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap