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
a9eebb91
Commit
a9eebb91
authored
Sep 30, 2014
by
manuele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warning fixes
parent
59099ecb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
fcw_detect.cpp
modules/adas/tools/fcw_detect/fcw_detect.cpp
+1
-1
fcw_train.cpp
modules/adas/tools/fcw_train/fcw_train.cpp
+4
-6
integral_channel_features.rst
modules/xobjdetect/doc/integral_channel_features.rst
+1
-1
xobjdetect.hpp
modules/xobjdetect/include/opencv2/xobjdetect.hpp
+1
-1
icfdetector.cpp
modules/xobjdetect/src/icfdetector.cpp
+1
-2
No files found.
modules/adas/tools/fcw_detect/fcw_detect.cpp
View file @
a9eebb91
...
...
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
string
out_image_path
=
parser
.
get
<
string
>
(
"out_image_path"
);
bool
is_grayscale
=
parser
.
get
<
bool
>
(
"is_grayscale"
);
float
threshold
=
parser
.
get
<
float
>
(
"threshold"
);
int
step
=
parser
.
get
<
floa
t
>
(
"step"
);
int
step
=
parser
.
get
<
in
t
>
(
"step"
);
int
min_rows
,
min_cols
,
max_rows
,
max_cols
;
string
min_window_size
=
parser
.
get
<
string
>
(
"min_window_size"
);
...
...
modules/adas/tools/fcw_train/fcw_train.cpp
View file @
a9eebb91
...
...
@@ -26,12 +26,14 @@ using cv::imread;
#include <opencv2/core/utility.hpp>
using
cv
::
CommandLineParser
;
using
cv
::
FileStorage
;
#include <opencv2/core/utility.hpp>
#include <ctime> // std::time
#include <cstdlib> // std::rand, std::srand
#include <opencv2/xobjdetect.hpp>
using
cv
::
xobjdetect
::
ICFDetectorParams
;
using
cv
::
xobjdetect
::
ICFDetector
;
using
cv
::
xobjdetect
::
WaldBoost
;
...
...
@@ -160,16 +162,12 @@ int main(int argc, char *argv[])
if
((
int
)((
params
.
bg_per_image
*
bg_filenames
.
size
())
+
pos_filenames
.
size
())
>
max_samples_allowed
)
{
std
::
cout
<<
std
::
endl
<<
"ERROR: exceeded maximum number of samples "
<<
std
::
endl
<<
std
::
endl
;
std
::
cout
<<
"exceeded maximum number of samples (pos + neg) with "
<<
features_size
<<
" features is: "
<<
max_samples_allowed
<<
std
::
endl
<<
std
::
endl
;
CV_Assert
(
false
);
CV_Error_
(
1
,
(
"exceeded maximum number of samples. Maximum number of samples with %d features is %d
\n
"
,
features_size
,
max_samples_allowed
));
}
if
(
params
.
feature_count
>
max_features_allowed
)
{
std
::
cout
<<
std
::
endl
<<
"ERROR: exceeded maximum number of features"
<<
std
::
endl
<<
std
::
endl
;
std
::
cout
<<
"maximum number of features with "
<<
samples_size
<<
" samples is: "
<<
max_features_allowed
<<
std
::
endl
<<
std
::
endl
;
CV_Assert
(
false
);
CV_Error_
(
1
,
(
"exceeded maximum number of features. Maximum number of features with %d samples is %d
\n
"
,
samples_size
,
max_features_allowed
));
}
std
::
cout
<<
pos_filenames
.
size
()
<<
std
::
endl
;
...
...
modules/xobjdetect/doc/integral_channel_features.rst
View file @
a9eebb91
...
...
@@ -199,7 +199,7 @@ Detect objects on image.
.. ocv:function:: void ICFDetector::detect(const Mat& image, vector<Rect>& objects, float scaleFactor, Size minSize, Size maxSize, float threshold, int slidingStep, std::vector<float>& values)
.. ocv:function:: detect(const Mat& img, std::vector<Rect>& objects, float minScaleFactor, float maxScaleFactor, float factorStep, float threshold, int slidingStep, std::vector<float>& values)
;
.. ocv:function:: detect(const Mat& img, std::vector<Rect>& objects, float minScaleFactor, float maxScaleFactor, float factorStep, float threshold, int slidingStep, std::vector<float>& values)
:param image: image for detection
:param objects: output array of bounding boxes
...
...
modules/xobjdetect/include/opencv2/xobjdetect.hpp
View file @
a9eebb91
...
...
@@ -166,7 +166,7 @@ struct CV_EXPORTS ICFDetectorParams
bool
use_fast_log
;
ICFDetectorParams
()
:
feature_count
(
UINT_MAX
),
weak_count
(
100
),
model_n_rows
(
56
),
model_n_cols
(
56
),
bg_per_image
(
5
),
alpha
(
0.02
),
is_grayscale
(
false
),
use_fast_log
(
false
)
model_n_rows
(
56
),
model_n_cols
(
56
),
bg_per_image
(
5
),
alpha
(
0.02
f
),
is_grayscale
(
false
),
use_fast_log
(
false
)
{}
};
...
...
modules/xobjdetect/src/icfdetector.cpp
View file @
a9eebb91
...
...
@@ -256,8 +256,7 @@ void ICFDetector::detect(const Mat& img, vector<Rect>& objects,
if
(
factorStep
<=
0
)
{
CV_Error
(
CV_StsBadArg
,
"factorStep must be > 0"
);
CV_Assert
(
false
);
CV_Error_
(
CV_StsBadArg
,
(
"factorStep must be > 0"
));
}
objects
.
clear
();
...
...
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