Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
10065d33
Commit
10065d33
authored
Jun 24, 2011
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trunk: moved contructors implementations from .hpp to .cpp
parent
2c958b25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
+17
-13
ml.hpp
modules/ml/include/opencv2/ml/ml.hpp
+5
-13
em.cpp
modules/ml/src/em.cpp
+12
-0
No files found.
modules/ml/include/opencv2/ml/ml.hpp
View file @
10065d33
...
...
@@ -552,19 +552,11 @@ protected:
struct
CV_EXPORTS_W_MAP
CvEMParams
{
CvEMParams
()
:
nclusters
(
10
),
cov_mat_type
(
1
/*CvEM::COV_MAT_DIAGONAL*/
),
start_step
(
0
/*CvEM::START_AUTO_STEP*/
),
probs
(
0
),
weights
(
0
),
means
(
0
),
covs
(
0
)
{
term_crit
=
cvTermCriteria
(
CV_TERMCRIT_ITER
+
CV_TERMCRIT_EPS
,
100
,
FLT_EPSILON
);
}
CvEMParams
(
int
_nclusters
,
int
_cov_mat_type
=
1
/*CvEM::COV_MAT_DIAGONAL*/
,
int
_start_step
=
0
/*CvEM::START_AUTO_STEP*/
,
CvTermCriteria
_term_crit
=
cvTermCriteria
(
CV_TERMCRIT_ITER
+
CV_TERMCRIT_EPS
,
100
,
FLT_EPSILON
),
const
CvMat
*
_probs
=
0
,
const
CvMat
*
_weights
=
0
,
const
CvMat
*
_means
=
0
,
const
CvMat
**
_covs
=
0
)
:
nclusters
(
_nclusters
),
cov_mat_type
(
_cov_mat_type
),
start_step
(
_start_step
),
probs
(
_probs
),
weights
(
_weights
),
means
(
_means
),
covs
(
_covs
),
term_crit
(
_term_crit
)
{}
CvEMParams
();
CvEMParams
(
int
nclusters
,
int
cov_mat_type
=
1
/*CvEM::COV_MAT_DIAGONAL*/
,
int
start_step
=
0
/*CvEM::START_AUTO_STEP*/
,
CvTermCriteria
term_crit
=
cvTermCriteria
(
CV_TERMCRIT_ITER
+
CV_TERMCRIT_EPS
,
100
,
FLT_EPSILON
),
const
CvMat
*
probs
=
0
,
const
CvMat
*
weights
=
0
,
const
CvMat
*
means
=
0
,
const
CvMat
**
covs
=
0
);
CV_PROP_RW
int
nclusters
;
CV_PROP_RW
int
cov_mat_type
;
...
...
modules/ml/src/em.cpp
View file @
10065d33
...
...
@@ -68,6 +68,18 @@
Symbol ' means transposition.
*/
CvEMParams
::
CvEMParams
()
:
nclusters
(
10
),
cov_mat_type
(
1
/*CvEM::COV_MAT_DIAGONAL*/
),
start_step
(
0
/*CvEM::START_AUTO_STEP*/
),
probs
(
0
),
weights
(
0
),
means
(
0
),
covs
(
0
)
{
term_crit
=
cvTermCriteria
(
CV_TERMCRIT_ITER
+
CV_TERMCRIT_EPS
,
100
,
FLT_EPSILON
);
}
CvEMParams
::
CvEMParams
(
int
_nclusters
,
int
_cov_mat_type
,
int
_start_step
,
CvTermCriteria
_term_crit
,
const
CvMat
*
_probs
,
const
CvMat
*
_weights
,
const
CvMat
*
_means
,
const
CvMat
**
_covs
)
:
nclusters
(
_nclusters
),
cov_mat_type
(
_cov_mat_type
),
start_step
(
_start_step
),
probs
(
_probs
),
weights
(
_weights
),
means
(
_means
),
covs
(
_covs
),
term_crit
(
_term_crit
)
{}
CvEM
::
CvEM
()
{
...
...
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