本文整理汇总了C++中HOGDescriptor::getDescriptorSize方法的典型用法代码示例。如果您正苦于以下问题:C++ HOGDescriptor::getDescriptorSize方法的具体用法?C++ HOGDescriptor::getDescriptorSize怎么用?C++ HOGDescriptor::getDescriptorSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HOGDescriptor
的用法示例。
在下文中一共展示了HOGDescriptor::getDescriptorSize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printHOGParams
void printHOGParams(HOGDescriptor &hog)
{
cout << "HOG descriptor size is " << hog.getDescriptorSize() << endl;
cout << "hog.windowSize: " << hog.winSize << endl;
cout << " cellsize " << hog.cellSize << endl;
cout << " hog.nbins " << hog.nbins << endl;
cout << " blockSize " << hog.blockSize << endl;
cout << " blockStride " << hog.blockStride << endl;
cout << " hog.nlevels " << hog.nlevels << endl;
cout << " hog.winSigma " << hog.winSigma << endl;
cout << " hog.free_coef " << hog.free_coef << endl;
cout << " hog.DEFAULT_NLEVELS " << hog.DEFAULT_NLEVELS << endl;
}
示例2: LOGD
JNIEXPORT jlong JNICALL Java_org_opencv_objdetect_HOGDescriptor_getDescriptorSize_10
(JNIEnv* env, jclass , jlong self)
{
static const char method_name[] = "objdetect::getDescriptorSize_10()";
try {
LOGD("%s", method_name);
HOGDescriptor* me = (HOGDescriptor*) self; //TODO: check for NULL
size_t _retval_ = me->getDescriptorSize( );
return _retval_;
} catch(const std::exception &e) {
throwJavaException(env, &e, method_name);
} catch (...) {
throwJavaException(env, 0, method_name);
}
return 0;
}
开发者ID:DapengLan,项目名称:Preparation-of-Augmented-Reality-with-OpenCV-and-Aruco,代码行数:16,代码来源:objdetect.cpp