mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fixing some static analysis issues
This commit is contained in:
@@ -53,12 +53,14 @@ public:
|
||||
{
|
||||
fullAffine = true;
|
||||
name_ = "ShapeTransformer.AFF";
|
||||
transformCost = 0;
|
||||
}
|
||||
|
||||
AffineTransformerImpl(bool _fullAffine)
|
||||
{
|
||||
fullAffine = _fullAffine;
|
||||
name_ = "ShapeTransformer.AFF";
|
||||
transformCost = 0;
|
||||
}
|
||||
|
||||
/* Destructor */
|
||||
|
||||
@@ -90,6 +90,14 @@ public:
|
||||
binsDim3 = 0;
|
||||
dimension = 0;
|
||||
nMaxIt = 500;
|
||||
|
||||
m_pLeave = 0;
|
||||
m_iEnter = 0;
|
||||
nNBV = 0;
|
||||
m_nItr = 0;
|
||||
m_iTo = 0;
|
||||
m_iFrom = 0;
|
||||
m_pEnter = 0;
|
||||
}
|
||||
|
||||
~EmdL1()
|
||||
|
||||
@@ -72,6 +72,7 @@ public:
|
||||
shapeContextWeight=1.0f;
|
||||
sigma=10.0f;
|
||||
name_ = "ShapeDistanceExtractor.SCD";
|
||||
costFlag = 0;
|
||||
}
|
||||
|
||||
/* Destructor */
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
setInnerRadius(_innerRadius);
|
||||
setOuterRadius(_outerRadius);
|
||||
setRotationInvariant(_rotationInvariant);
|
||||
meanDistance = 0;
|
||||
}
|
||||
|
||||
void extractSCD(cv::Mat& contour, cv::Mat& descriptors,
|
||||
@@ -107,7 +108,7 @@ class SCDMatcher
|
||||
{
|
||||
public:
|
||||
// the full constructor
|
||||
SCDMatcher()
|
||||
SCDMatcher() : minMatchCost(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ public:
|
||||
regularizationParameter=0;
|
||||
name_ = "ShapeTransformer.TPS";
|
||||
tpsComputed=false;
|
||||
transformCost = 0;
|
||||
}
|
||||
|
||||
ThinPlateSplineShapeTransformerImpl(double _regularizationParameter)
|
||||
@@ -61,6 +62,7 @@ public:
|
||||
regularizationParameter=_regularizationParameter;
|
||||
name_ = "ShapeTransformer.TPS";
|
||||
tpsComputed=false;
|
||||
transformCost = 0;
|
||||
}
|
||||
|
||||
/* Destructor */
|
||||
|
||||
Reference in New Issue
Block a user