Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
5d406973
Commit
5d406973
authored
Aug 11, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed warnings on Linux/Mac
parent
4df76c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bgfg_gmg.cpp
modules/bgsegm/src/bgfg_gmg.cpp
+3
-3
No files found.
modules/bgsegm/src/bgfg_gmg.cpp
View file @
5d406973
...
...
@@ -225,7 +225,7 @@ void BackgroundSubtractorGMGImpl::initialize(Size frameSize, double minVal, doub
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
)
{
...
...
@@ -237,7 +237,7 @@ float findFeature(unsigned int color, const unsigned int* colors, const float* w
return
0.0
f
;
}
void
normalizeHistogram
(
float
*
weights
,
int
nfeatures
)
static
void
normalizeHistogram
(
float
*
weights
,
int
nfeatures
)
{
float
total
=
0.0
f
;
for
(
int
i
=
0
;
i
<
nfeatures
;
++
i
)
...
...
@@ -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
;
for
(
int
i
=
0
;
i
<
nfeatures
;
++
i
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment