本文整理汇总了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);
}
示例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);
}
};
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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
}
示例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);
}
示例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);
}