提交 9df99915 编写于 作者: V Vadim Pisarevsky

fixed a few warnings and bugs, including ticket #1079

上级 b6c19d36
......@@ -72,7 +72,7 @@
#include <sys/time.h>
#include <time.h>
#ifdef __MACH__ && defined __APPLE__
#if defined __MACH__ && defined __APPLE__
#include <mach/mach.h>
#include <mach/mach_time.h>
#endif
......
......@@ -2,7 +2,6 @@
#define _LSVM_TBBVERSION_H
#include "_lsvm_matching.h"
#include "precomp.hpp"
/*
// Computation score function using TBB tasks
......
#include "precomp.hpp"
#ifdef HAVE_TBB
#include "_lsvm_tbbversion.h"
......
......@@ -325,7 +325,7 @@ for nm,args,ty,flags in sorted(api):
ds_args += o2s(optional)
ds = "%s(%s) -> %s" % (nm, ds_args, str(ty))
print ds
#print ds
if has_optional(args):
entry = '{"%%s", (PyCFunction)pycv%s, METH_KEYWORDS, "%s"},' % (cname(nm), ds)
......
......@@ -5,7 +5,7 @@
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
#endif
#include <cstdarg> // for va_list
#include <stdarg.h> // for va_list
#include "opencv2/ts/ts_gtest.h"
#include "opencv2/core/core.hpp"
......
......@@ -610,7 +610,7 @@ int build_nbayes_classifier( char* data_filename )
true_results[j - ntrain_samples] = responses->data.fl[j];
}
CvMat *result = cvCreateMat(1, nsamples_all - ntrain_samples, CV_32FC1);
(int)nbayes.predict(&sample, result);
nbayes.predict(&sample, result);
int true_resp = 0;
//int accuracy = 0;
for (int i = 0; i < nsamples_all - ntrain_samples; i++)
......
#if _MSC_VER >= 1400
#pragma warning( disable : 4201 4408 4127 4100)
#endif
#include "cvconfig.h"
#include <iostream>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册