Commit 5d406973 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed warnings on Linux/Mac

parent 4df76c35
...@@ -225,7 +225,7 @@ void BackgroundSubtractorGMGImpl::initialize(Size frameSize, double minVal, doub ...@@ -225,7 +225,7 @@ void BackgroundSubtractorGMGImpl::initialize(Size frameSize, double minVal, doub
nfeatures_.setTo(Scalar::all(0)); nfeatures_.setTo(Scalar::all(0));
} }
float findFeature(unsigned int color, const unsigned int* colors, const float* weights, int nfeatures) static float findFeature(unsigned int color, const unsigned int* colors, const float* weights, int nfeatures)
{ {
for (int i = 0; i < nfeatures; ++i) for (int i = 0; i < nfeatures; ++i)
{ {
...@@ -237,7 +237,7 @@ float findFeature(unsigned int color, const unsigned int* colors, const float* w ...@@ -237,7 +237,7 @@ float findFeature(unsigned int color, const unsigned int* colors, const float* w
return 0.0f; return 0.0f;
} }
void normalizeHistogram(float* weights, int nfeatures) static void normalizeHistogram(float* weights, int nfeatures)
{ {
float total = 0.0f; float total = 0.0f;
for (int i = 0; i < nfeatures; ++i) for (int i = 0; i < nfeatures; ++i)
...@@ -250,7 +250,7 @@ void normalizeHistogram(float* weights, int nfeatures) ...@@ -250,7 +250,7 @@ void normalizeHistogram(float* weights, int nfeatures)
} }
} }
bool insertFeature(unsigned int color, float weight, unsigned int* colors, float* weights, int& nfeatures, int maxFeatures) static bool insertFeature(unsigned int color, float weight, unsigned int* colors, float* weights, int& nfeatures, int maxFeatures)
{ {
int idx = -1; int idx = -1;
for (int i = 0; i < nfeatures; ++i) for (int i = 0; i < nfeatures; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment