svm 2617 modules/core/src/ocl.cpp svm::SVMCapabilities svmCapabilities; svm 2618 modules/core/src/ocl.cpp svm::SVMFunctions svmFunctions; svm 2635 modules/core/src/ocl.cpp ((deviceCaps & CL_DEVICE_SVM_COARSE_GRAIN_BUFFER) ? svm::SVMCapabilities::SVM_COARSE_GRAIN_BUFFER : 0) | svm 2636 modules/core/src/ocl.cpp ((deviceCaps & CL_DEVICE_SVM_FINE_GRAIN_BUFFER) ? svm::SVMCapabilities::SVM_FINE_GRAIN_BUFFER : 0) | svm 2637 modules/core/src/ocl.cpp ((deviceCaps & CL_DEVICE_SVM_FINE_GRAIN_SYSTEM) ? svm::SVMCapabilities::SVM_FINE_GRAIN_SYSTEM : 0) | svm 2638 modules/core/src/ocl.cpp ((deviceCaps & CL_DEVICE_SVM_ATOMICS) ? svm::SVMCapabilities::SVM_ATOMICS : 0); svm 2639 modules/core/src/ocl.cpp svmCapabilities.value_ &= svm::getSVMCapabilitiesMask(); svm 2736 modules/core/src/ocl.cpp svmEnabled = !svm::checkDisableSVM(); svm 3299 modules/core/src/ocl.cpp if ((arg.m->u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 3302 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4033 modules/core/src/ocl.cpp const svm::SVMCapabilities svmCaps = svm::getSVMCapabilitites(ctx); svm 4038 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4061 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4209 modules/core/src/ocl.cpp const svm::SVMCapabilities svmCaps = svm::getSVMCapabilitites(ctx); svm 4210 modules/core/src/ocl.cpp if (ctx.useSVM() && svm::useSVM(usageFlags) && !svmCaps.isNoSVMSupport()) svm 4217 modules/core/src/ocl.cpp allocatorFlags |= isFineGrainBuffer ? svm::OPENCL_SVM_FINE_GRAIN_BUFFER : svm::OPENCL_SVM_COARSE_GRAIN_BUFFER; svm 4270 modules/core/src/ocl.cpp svm::SVMCapabilities svmCaps = svm::getSVMCapabilitites(ctx); svm 4271 modules/core/src/ocl.cpp bool useSVM = ctx.useSVM() && svm::useSVM(usageFlags); svm 4274 modules/core/src/ocl.cpp allocatorFlags = svm::OPENCL_SVM_FINE_GRAIN_SYSTEM; svm 4288 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4315 modules/core/src/ocl.cpp allocatorFlags |= isFineGrainBuffer ? svm::OPENCL_SVM_FINE_GRAIN_BUFFER svm 4316 modules/core/src/ocl.cpp : svm::OPENCL_SVM_COARSE_GRAIN_BUFFER; svm 4391 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4394 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4399 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER || svm 4400 modules/core/src/ocl.cpp (u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER); svm 4401 modules/core/src/ocl.cpp bool isFineGrainBuffer = (u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER; svm 4405 modules/core/src/ocl.cpp CV_DbgAssert(((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) == 0)); svm 4424 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_SYSTEM); svm 4453 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4458 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4497 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_SYSTEM) svm 4501 modules/core/src/ocl.cpp else if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER || svm 4502 modules/core/src/ocl.cpp (u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4505 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4509 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) != 0) svm 4551 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4553 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4556 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4559 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) == 0) svm 4566 modules/core/src/ocl.cpp u->allocatorFlags_ |= svm::OPENCL_SVM_BUFFER_MAP; svm 4609 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == 0); svm 4638 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4640 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4643 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4646 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) != 0); svm 4653 modules/core/src/ocl.cpp u->allocatorFlags_ &= ~svm::OPENCL_SVM_BUFFER_MAP; svm 4675 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == 0); svm 4785 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4789 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4792 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) == 0); svm 4793 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4832 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4897 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 4901 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 4904 modules/core/src/ocl.cpp CV_DbgAssert((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MAP) == 0); svm 4905 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4944 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_COARSE_GRAIN_BUFFER) svm 4971 modules/core/src/ocl.cpp if ((u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER || svm 4972 modules/core/src/ocl.cpp (u->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_SYSTEM) svm 5013 modules/core/src/ocl.cpp if ((dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER || svm 5014 modules/core/src/ocl.cpp (dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_SYSTEM) svm 5032 modules/core/src/ocl.cpp if ((src->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0 || svm 5033 modules/core/src/ocl.cpp (dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 5035 modules/core/src/ocl.cpp if ((src->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0 && svm 5036 modules/core/src/ocl.cpp (dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 5039 modules/core/src/ocl.cpp const svm::SVMFunctions* svmFns = svm::getSVMFunctions(ctx); svm 5087 modules/core/src/ocl.cpp if ((src->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) != 0) svm 5124 modules/core/src/ocl.cpp if ((dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_BUFFER || svm 5125 modules/core/src/ocl.cpp (dst->allocatorFlags_ & svm::OPENCL_SVM_BUFFER_MASK) == svm::OPENCL_SVM_FINE_GRAIN_SYSTEM) svm 5144 modules/core/src/ocl.cpp if ((svm::checkForceSVMUmatUsage() && (id == NULL || strcmp(id, "OCL") == 0)) || (id != NULL && strcmp(id, "SVM") == 0)) svm 1831 modules/ml/src/svm.cpp svm = _svm; svm 1839 modules/ml/src/svm.cpp int svmType = svm->params.svmType; svm 1840 modules/ml/src/svm.cpp int sv_total = svm->sv.rows; svm 1841 modules/ml/src/svm.cpp int class_count = !svm->class_labels.empty() ? (int)svm->class_labels.total() : svmType == ONE_CLASS ? 1 : 0; svm 1853 modules/ml/src/svm.cpp svm->kernel->calc( sv_total, svm->var_count, svm->sv.ptr<float>(), row_sample, buffer ); svm 1855 modules/ml/src/svm.cpp const SVMImpl::DecisionFunc* df = &svm->decision_func[0]; svm 1858 modules/ml/src/svm.cpp sum += buffer[i]*svm->df_alpha[i]; svm 1859 modules/ml/src/svm.cpp float result = svm->params.svmType == ONE_CLASS && !returnDFVal ? (float)(sum > 0) : (float)sum; svm 1869 modules/ml/src/svm.cpp svm->kernel->calc( sv_total, svm->var_count, svm->sv.ptr<float>(), svm 1879 modules/ml/src/svm.cpp const DecisionFunc& df = svm->decision_func[dfi]; svm 1881 modules/ml/src/svm.cpp int sv_count = svm->getSVCount(dfi); svm 1882 modules/ml/src/svm.cpp const double* alpha = &svm->df_alpha[df.ofs]; svm 1883 modules/ml/src/svm.cpp const int* sv_index = &svm->df_index[df.ofs]; svm 1897 modules/ml/src/svm.cpp (float)sum : (float)(svm->class_labels.at<int>(k)); svm 1906 modules/ml/src/svm.cpp const SVMImpl* svm; svm 73 modules/ml/test/test_svmtrainauto.cpp cv::Ptr<SVM> svm = SVM::create(); svm 74 modules/ml/test/test_svmtrainauto.cpp svm->trainAuto( data, 10 ); // 2-fold cross validation. svm 78 modules/ml/test/test_svmtrainauto.cpp float result0 = svm->predict( test_point0 ); svm 81 modules/ml/test/test_svmtrainauto.cpp float result1 = svm->predict( test_point1 ); svm 127 samples/cpp/points_classifier.cpp Ptr<SVM> svm = SVM::create(); svm 128 samples/cpp/points_classifier.cpp svm->setType(SVM::C_SVC); svm 129 samples/cpp/points_classifier.cpp svm->setKernel(SVM::POLY); //SVM::LINEAR; svm 130 samples/cpp/points_classifier.cpp svm->setDegree(0.5); svm 131 samples/cpp/points_classifier.cpp svm->setGamma(1); svm 132 samples/cpp/points_classifier.cpp svm->setCoef0(1); svm 133 samples/cpp/points_classifier.cpp svm->setNu(0.5); svm 134 samples/cpp/points_classifier.cpp svm->setP(0); svm 135 samples/cpp/points_classifier.cpp svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 1000, 0.01)); svm 136 samples/cpp/points_classifier.cpp svm->setC(C); svm 137 samples/cpp/points_classifier.cpp svm->train(prepare_train_data()); svm 138 samples/cpp/points_classifier.cpp predict_and_paint(svm, imgDst); svm 140 samples/cpp/points_classifier.cpp Mat sv = svm->getSupportVectors(); svm 14 samples/cpp/train_HOG.cpp void get_svm_detector(const Ptr<SVM>& svm, vector< float > & hog_detector ); svm 24 samples/cpp/train_HOG.cpp void get_svm_detector(const Ptr<SVM>& svm, vector< float > & hog_detector ) svm 27 samples/cpp/train_HOG.cpp Mat sv = svm->getSupportVectors(); svm 31 samples/cpp/train_HOG.cpp double rho = svm->getDecisionFunction(0, alpha, svidx); svm 321 samples/cpp/train_HOG.cpp Ptr<SVM> svm = SVM::create(); svm 323 samples/cpp/train_HOG.cpp svm->setCoef0(0.0); svm 324 samples/cpp/train_HOG.cpp svm->setDegree(3); svm 325 samples/cpp/train_HOG.cpp svm->setTermCriteria(TermCriteria( CV_TERMCRIT_ITER+CV_TERMCRIT_EPS, 1000, 1e-3 )); svm 326 samples/cpp/train_HOG.cpp svm->setGamma(0); svm 327 samples/cpp/train_HOG.cpp svm->setKernel(SVM::LINEAR); svm 328 samples/cpp/train_HOG.cpp svm->setNu(0.5); svm 329 samples/cpp/train_HOG.cpp svm->setP(0.1); // for EPSILON_SVR, epsilon in loss function? svm 330 samples/cpp/train_HOG.cpp svm->setC(0.01); // From paper, soft classifier svm 331 samples/cpp/train_HOG.cpp svm->setType(SVM::EPS_SVR); // C_SVC; // EPSILON_SVR; // may be also NU_SVR; // do regression task svm 332 samples/cpp/train_HOG.cpp svm->train(train_data, ROW_SAMPLE, Mat(labels)); svm 335 samples/cpp/train_HOG.cpp svm->save( "my_people_detector.yml" ); svm 357 samples/cpp/train_HOG.cpp Ptr<SVM> svm; svm 365 samples/cpp/train_HOG.cpp svm = StatModel::load<SVM>( "my_people_detector.yml" ); svm 368 samples/cpp/train_HOG.cpp get_svm_detector( svm, hog_detector ); svm 29 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp Ptr<SVM> svm = SVM::create(); svm 30 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp svm->setType(SVM::C_SVC); svm 31 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp svm->setKernel(SVM::LINEAR); svm 32 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6)); svm 35 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp svm->train(trainingDataMat, ROW_SAMPLE, labelsMat); svm 45 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp float response = svm->predict(sampleMat); svm 68 samples/cpp/tutorial_code/ml/introduction_to_svm/introduction_to_svm.cpp Mat sv = svm->getSupportVectors(); svm 81 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp Ptr<SVM> svm = SVM::create(); svm 82 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp svm->setType(SVM::C_SVC); svm 83 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp svm->setC(0.1); svm 84 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp svm->setKernel(SVM::LINEAR); svm 85 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER, (int)1e7, 1e-6)); svm 88 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp svm->train(trainData, ROW_SAMPLE, labels); svm 99 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp float response = svm->predict(sampleMat); svm 131 samples/cpp/tutorial_code/ml/non_linear_svms/non_linear_svms.cpp Mat sv = svm->getSupportVectors();