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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user