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


C++ cvReadIntByName函数代码示例

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


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


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