mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Fixing some static analysis issues
This commit is contained in:
@@ -89,6 +89,9 @@ public:
|
||||
nShadowDetection = defaultnShadowDetection2;
|
||||
fTau = defaultfTau;// Tau - shadow threshold
|
||||
name_ = "BackgroundSubtractor.KNN";
|
||||
nLongCounter = 0;
|
||||
nMidCounter = 0;
|
||||
nShortCounter = 0;
|
||||
}
|
||||
//! the full constructor that takes the length of the history,
|
||||
// the number of gaussian mixtures, the background ratio parameter and the noise strength
|
||||
@@ -113,6 +116,9 @@ public:
|
||||
nShadowDetection = defaultnShadowDetection2;
|
||||
fTau = defaultfTau;
|
||||
name_ = "BackgroundSubtractor.KNN";
|
||||
nLongCounter = 0;
|
||||
nMidCounter = 0;
|
||||
nShortCounter = 0;
|
||||
}
|
||||
//! the destructor
|
||||
~BackgroundSubtractorKNNImpl() {}
|
||||
|
||||
@@ -1451,7 +1451,7 @@ getRTMatrix( const Point2f* a, const Point2f* b,
|
||||
}
|
||||
else
|
||||
{
|
||||
double sa[4][4]={{0.}}, sb[4]={0.}, m[4];
|
||||
double sa[4][4]={{0.}}, sb[4]={0.}, m[4] = {0};
|
||||
Mat A( 4, 4, CV_64F, sa ), B( 4, 1, CV_64F, sb );
|
||||
Mat MM( 4, 1, CV_64F, m );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user