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
4296b456
Commit
4296b456
authored
Apr 12, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missed constants for reduce operation
parent
bd59bc3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
49 deletions
+53
-49
core.hpp
modules/core/include/opencv2/core.hpp
+53
-49
No files found.
modules/core/include/opencv2/core.hpp
View file @
4296b456
...
...
@@ -109,6 +109,52 @@ public:
CV_EXPORTS
void
error
(
const
Exception
&
exc
);
enum
{
SORT_EVERY_ROW
=
0
,
SORT_EVERY_COLUMN
=
1
,
SORT_ASCENDING
=
0
,
SORT_DESCENDING
=
16
};
enum
{
COVAR_SCRAMBLED
=
0
,
COVAR_NORMAL
=
1
,
COVAR_USE_AVG
=
2
,
COVAR_SCALE
=
4
,
COVAR_ROWS
=
8
,
COVAR_COLS
=
16
};
/*!
k-Means flags
*/
enum
{
KMEANS_RANDOM_CENTERS
=
0
,
// Chooses random centers for k-Means initialization
KMEANS_PP_CENTERS
=
2
,
// Uses k-Means++ algorithm for initialization
KMEANS_USE_INITIAL_LABELS
=
1
// Uses the user-provided labels for K-Means initialization
};
enum
{
FILLED
=
-
1
,
LINE_4
=
4
,
LINE_8
=
8
,
LINE_AA
=
16
};
enum
{
FONT_HERSHEY_SIMPLEX
=
0
,
FONT_HERSHEY_PLAIN
=
1
,
FONT_HERSHEY_DUPLEX
=
2
,
FONT_HERSHEY_COMPLEX
=
3
,
FONT_HERSHEY_TRIPLEX
=
4
,
FONT_HERSHEY_COMPLEX_SMALL
=
5
,
FONT_HERSHEY_SCRIPT_SIMPLEX
=
6
,
FONT_HERSHEY_SCRIPT_COMPLEX
=
7
,
FONT_ITALIC
=
16
};
enum
{
REDUCE_SUM
=
0
,
REDUCE_AVG
=
1
,
REDUCE_MAX
=
2
,
REDUCE_MIN
=
3
};
//! swaps two matrices
CV_EXPORTS
void
swap
(
Mat
&
a
,
Mat
&
b
);
...
...
@@ -371,14 +417,6 @@ CV_EXPORTS_W double invert(InputArray src, OutputArray dst, int flags = DECOMP_L
CV_EXPORTS_W
bool
solve
(
InputArray
src1
,
InputArray
src2
,
OutputArray
dst
,
int
flags
=
DECOMP_LU
);
enum
{
SORT_EVERY_ROW
=
0
,
SORT_EVERY_COLUMN
=
1
,
SORT_ASCENDING
=
0
,
SORT_DESCENDING
=
16
};
//! sorts independently each matrix row or each matrix column
CV_EXPORTS_W
void
sort
(
InputArray
src
,
OutputArray
dst
,
int
flags
);
...
...
@@ -395,16 +433,6 @@ CV_EXPORTS_W double solvePoly(InputArray coeffs, OutputArray roots, int maxIters
CV_EXPORTS_W
bool
eigen
(
InputArray
src
,
OutputArray
eigenvalues
,
OutputArray
eigenvectors
=
noArray
());
enum
{
COVAR_SCRAMBLED
=
0
,
COVAR_NORMAL
=
1
,
COVAR_USE_AVG
=
2
,
COVAR_SCALE
=
4
,
COVAR_ROWS
=
8
,
COVAR_COLS
=
16
};
//! computes covariation matrix of a set of samples
CV_EXPORTS
void
calcCovarMatrix
(
const
Mat
*
samples
,
int
nsamples
,
Mat
&
covar
,
Mat
&
mean
,
int
flags
,
int
ctype
=
CV_64F
);
//TODO: InputArrayOfArrays
...
...
@@ -454,16 +482,6 @@ CV_EXPORTS_W void mulSpectrums(InputArray a, InputArray b, OutputArray c,
//! computes the minimal vector size vecsize1 >= vecsize so that the dft() of the vector of length vecsize1 can be computed efficiently
CV_EXPORTS_W
int
getOptimalDFTSize
(
int
vecsize
);
/*!
k-Means flags
*/
enum
{
KMEANS_RANDOM_CENTERS
=
0
,
// Chooses random centers for k-Means initialization
KMEANS_PP_CENTERS
=
2
,
// Uses k-Means++ algorithm for initialization
KMEANS_USE_INITIAL_LABELS
=
1
// Uses the user-provided labels for K-Means initialization
};
//! clusters the input data using k-Means algorithm
CV_EXPORTS_W
double
kmeans
(
InputArray
data
,
int
K
,
InputOutputArray
bestLabels
,
TermCriteria
criteria
,
int
attempts
,
...
...
@@ -481,12 +499,6 @@ CV_EXPORTS_W void randn(InputOutputArray dst, InputArray mean, InputArray stddev
//! shuffles the input array elements
CV_EXPORTS_W
void
randShuffle
(
InputOutputArray
dst
,
double
iterFactor
=
1.
,
RNG
*
rng
=
0
);
enum
{
FILLED
=
-
1
,
LINE_4
=
4
,
LINE_8
=
8
,
LINE_AA
=
16
};
//! draws the line segment (pt1, pt2) in the image
CV_EXPORTS_W
void
line
(
CV_IN_OUT
Mat
&
img
,
Point
pt1
,
Point
pt2
,
const
Scalar
&
color
,
int
thickness
=
1
,
int
lineType
=
LINE_8
,
int
shift
=
0
);
...
...
@@ -562,19 +574,6 @@ CV_EXPORTS_W void ellipse2Poly( Point center, Size axes, int angle,
int
arcStart
,
int
arcEnd
,
int
delta
,
CV_OUT
std
::
vector
<
Point
>&
pts
);
enum
{
FONT_HERSHEY_SIMPLEX
=
0
,
FONT_HERSHEY_PLAIN
=
1
,
FONT_HERSHEY_DUPLEX
=
2
,
FONT_HERSHEY_COMPLEX
=
3
,
FONT_HERSHEY_TRIPLEX
=
4
,
FONT_HERSHEY_COMPLEX_SMALL
=
5
,
FONT_HERSHEY_SCRIPT_SIMPLEX
=
6
,
FONT_HERSHEY_SCRIPT_COMPLEX
=
7
,
FONT_ITALIC
=
16
};
//! renders text string in the image
CV_EXPORTS_W
void
putText
(
Mat
&
img
,
const
String
&
text
,
Point
org
,
int
fontFace
,
double
fontScale
,
Scalar
color
,
...
...
@@ -694,7 +693,10 @@ public:
class
CV_EXPORTS
SVD
{
public
:
enum
{
MODIFY_A
=
1
,
NO_UV
=
2
,
FULL_UV
=
4
};
enum
{
MODIFY_A
=
1
,
NO_UV
=
2
,
FULL_UV
=
4
};
//! the default constructor
SVD
();
...
...
@@ -861,7 +863,9 @@ public:
class
CV_EXPORTS
RNG
{
public
:
enum
{
UNIFORM
=
0
,
NORMAL
=
1
};
enum
{
UNIFORM
=
0
,
NORMAL
=
1
};
RNG
();
RNG
(
uint64
state
);
...
...
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