1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fixing some static analysis issues

This commit is contained in:
Maksim Shabunin
2017-06-26 14:09:21 +03:00
parent b991665b5d
commit 32d4af36e2
63 changed files with 238 additions and 94 deletions
+9 -1
View File
@@ -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)