Fixing some static analysis issues
This commit is contained in:
@@ -569,6 +569,9 @@ HaarEvaluator::HaarEvaluator()
|
||||
lbufSize = Size(0, 0);
|
||||
nchannels = 0;
|
||||
tofs = 0;
|
||||
sqofs = 0;
|
||||
varianceNormFactor = 0;
|
||||
hasTiltedFeatures = false;
|
||||
}
|
||||
|
||||
HaarEvaluator::~HaarEvaluator()
|
||||
@@ -770,6 +773,8 @@ LBPEvaluator::LBPEvaluator()
|
||||
features = makePtr<std::vector<Feature> >();
|
||||
optfeatures = makePtr<std::vector<OptFeature> >();
|
||||
scaleData = makePtr<std::vector<ScaleData> >();
|
||||
optfeaturesPtr = 0;
|
||||
pwin = 0;
|
||||
}
|
||||
|
||||
LBPEvaluator::~LBPEvaluator()
|
||||
@@ -885,6 +890,9 @@ Ptr<FeatureEvaluator> FeatureEvaluator::create( int featureType )
|
||||
|
||||
CascadeClassifierImpl::CascadeClassifierImpl()
|
||||
{
|
||||
#ifdef HAVE_OPENCL
|
||||
tryOpenCL = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
CascadeClassifierImpl::~CascadeClassifierImpl()
|
||||
@@ -1440,7 +1448,7 @@ void CascadeClassifierImpl::detectMultiScale( InputArray _image, std::vector<Rec
|
||||
|
||||
CascadeClassifierImpl::Data::Data()
|
||||
{
|
||||
stageType = featureType = ncategories = maxNodesPerTree = 0;
|
||||
stageType = featureType = ncategories = maxNodesPerTree = minNodesPerTree = 0;
|
||||
}
|
||||
|
||||
bool CascadeClassifierImpl::Data::read(const FileNode &root)
|
||||
|
||||
@@ -184,7 +184,7 @@ protected:
|
||||
|
||||
struct Stump
|
||||
{
|
||||
Stump() { }
|
||||
Stump() : featureIdx(0), threshold(0), left(0), right(0) { }
|
||||
Stump(int _featureIdx, float _threshold, float _left, float _right)
|
||||
: featureIdx(_featureIdx), threshold(_threshold), left(_left), right(_right) {}
|
||||
|
||||
|
||||
@@ -218,6 +218,7 @@ cv::DetectionBasedTracker::SeparateDetectionWork::SeparateDetectionWork(Detectio
|
||||
|
||||
cascadeInThread = _detector;
|
||||
#ifndef USE_STD_THREADS
|
||||
second_workthread = 0;
|
||||
int res=0;
|
||||
res=pthread_mutex_init(&mutex, NULL);//TODO: should be attributes?
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user