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
aebed446
Commit
aebed446
authored
May 18, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partly merged the trunk r8322
parent
c3577a28
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
14 deletions
+45
-14
core.hpp
modules/core/include/opencv2/core/core.hpp
+3
-0
mat.hpp
modules/core/include/opencv2/core/mat.hpp
+29
-12
convert.cpp
modules/core/src/convert.cpp
+0
-0
matrix.cpp
modules/core/src/matrix.cpp
+13
-2
No files found.
modules/core/include/opencv2/core/core.hpp
View file @
aebed446
...
...
@@ -1305,6 +1305,7 @@ public:
template
<
typename
_Tp
>
_InputArray
(
const
vector
<
_Tp
>&
vec
);
template
<
typename
_Tp
>
_InputArray
(
const
vector
<
vector
<
_Tp
>
>&
vec
);
_InputArray
(
const
vector
<
Mat
>&
vec
);
template
<
typename
_Tp
>
_InputArray
(
const
vector
<
Mat_
<
_Tp
>
>&
vec
);
template
<
typename
_Tp
>
_InputArray
(
const
Mat_
<
_Tp
>&
m
);
template
<
typename
_Tp
,
int
m
,
int
n
>
_InputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
matx
);
_InputArray
(
const
Scalar
&
s
);
...
...
@@ -1360,6 +1361,7 @@ public:
template
<
typename
_Tp
>
_OutputArray
(
vector
<
_Tp
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
vector
<
vector
<
_Tp
>
>&
vec
);
_OutputArray
(
vector
<
Mat
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
vector
<
Mat_
<
_Tp
>
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
Mat_
<
_Tp
>&
m
);
template
<
typename
_Tp
,
int
m
,
int
n
>
_OutputArray
(
Matx
<
_Tp
,
m
,
n
>&
matx
);
template
<
typename
_Tp
>
_OutputArray
(
_Tp
*
vec
,
int
n
);
...
...
@@ -1368,6 +1370,7 @@ public:
template
<
typename
_Tp
>
_OutputArray
(
const
vector
<
_Tp
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
const
vector
<
vector
<
_Tp
>
>&
vec
);
_OutputArray
(
const
vector
<
Mat
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
const
vector
<
Mat_
<
_Tp
>
>&
vec
);
template
<
typename
_Tp
>
_OutputArray
(
const
Mat_
<
_Tp
>&
m
);
template
<
typename
_Tp
,
int
m
,
int
n
>
_OutputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
matx
);
template
<
typename
_Tp
>
_OutputArray
(
const
_Tp
*
vec
,
int
n
);
...
...
modules/core/include/opencv2/core/mat.hpp
View file @
aebed446
...
...
@@ -1118,6 +1118,9 @@ template<typename _Tp> inline _InputArray::_InputArray(const vector<_Tp>& vec)
template
<
typename
_Tp
>
inline
_InputArray
::
_InputArray
(
const
vector
<
vector
<
_Tp
>
>&
vec
)
:
flags
(
FIXED_TYPE
+
STD_VECTOR_VECTOR
+
DataType
<
_Tp
>::
type
),
obj
((
void
*
)
&
vec
)
{}
template
<
typename
_Tp
>
inline
_InputArray
::
_InputArray
(
const
vector
<
Mat_
<
_Tp
>
>&
vec
)
:
flags
(
FIXED_TYPE
+
STD_VECTOR_MAT
+
DataType
<
_Tp
>::
type
),
obj
((
void
*
)
&
vec
)
{}
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
_InputArray
::
_InputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
mtx
)
:
flags
(
FIXED_TYPE
+
FIXED_SIZE
+
MATX
+
DataType
<
_Tp
>::
type
),
obj
((
void
*
)
&
mtx
),
sz
(
n
,
m
)
{}
...
...
@@ -1130,18 +1133,32 @@ inline _InputArray::_InputArray(const Scalar& s)
template
<
typename
_Tp
>
inline
_InputArray
::
_InputArray
(
const
Mat_
<
_Tp
>&
m
)
:
flags
(
FIXED_TYPE
+
MAT
+
DataType
<
_Tp
>::
type
),
obj
((
void
*
)
&
m
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
vector
<
_Tp
>&
vec
)
:
_InputArray
(
vec
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
vector
<
vector
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
Mat_
<
_Tp
>&
m
)
:
_InputArray
(
m
)
{}
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
_OutputArray
::
_OutputArray
(
Matx
<
_Tp
,
m
,
n
>&
mtx
)
:
_InputArray
(
mtx
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
_Tp
*
vec
,
int
n
)
:
_InputArray
(
vec
,
n
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
vector
<
_Tp
>&
vec
)
:
_InputArray
(
vec
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
vector
<
vector
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
Mat_
<
_Tp
>&
m
)
:
_InputArray
(
m
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
_OutputArray
::
_OutputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
mtx
)
:
_InputArray
(
mtx
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
_Tp
*
vec
,
int
n
)
:
_InputArray
(
vec
,
n
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
vector
<
_Tp
>&
vec
)
:
_InputArray
(
vec
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
vector
<
vector
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
vector
<
Mat_
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
Mat_
<
_Tp
>&
m
)
:
_InputArray
(
m
)
{}
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
_OutputArray
::
_OutputArray
(
Matx
<
_Tp
,
m
,
n
>&
mtx
)
:
_InputArray
(
mtx
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
_Tp
*
vec
,
int
n
)
:
_InputArray
(
vec
,
n
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
vector
<
_Tp
>&
vec
)
:
_InputArray
(
vec
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
vector
<
vector
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
vector
<
Mat_
<
_Tp
>
>&
vec
)
:
_InputArray
(
vec
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
Mat_
<
_Tp
>&
m
)
:
_InputArray
(
m
)
{
flags
|=
FIXED_SIZE
;}
template
<
typename
_Tp
,
int
m
,
int
n
>
inline
_OutputArray
::
_OutputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
mtx
)
:
_InputArray
(
mtx
)
{}
template
<
typename
_Tp
>
inline
_OutputArray
::
_OutputArray
(
const
_Tp
*
vec
,
int
n
)
:
_InputArray
(
vec
,
n
)
{}
//////////////////////////////////// Matrix Expressions /////////////////////////////////////////
...
...
modules/core/src/convert.cpp
View file @
aebed446
modules/core/src/matrix.cpp
View file @
aebed446
...
...
@@ -1470,10 +1470,21 @@ void _OutputArray::create(int dims, const int* size, int type, int i, bool allow
if
(
i
<
0
)
{
CV_Assert
(
dims
==
2
&&
(
size
[
0
]
==
1
||
size
[
1
]
==
1
||
size
[
0
]
*
size
[
1
]
==
0
)
);
size_t
len
=
size
[
0
]
*
size
[
1
]
>
0
?
size
[
0
]
+
size
[
1
]
-
1
:
0
;
size_t
len
=
size
[
0
]
*
size
[
1
]
>
0
?
size
[
0
]
+
size
[
1
]
-
1
:
0
,
len0
=
v
.
size
()
;
CV_Assert
(
!
fixedSize
()
||
len
==
v
.
size
()
);
CV_Assert
(
!
fixedSize
()
||
len
==
len0
);
v
.
resize
(
len
);
if
(
fixedType
()
)
{
int
type
=
CV_MAT_TYPE
(
flags
);
for
(
size_t
j
=
len0
;
j
<
len
;
j
++
)
{
if
(
v
[
i
].
type
()
==
type
)
continue
;
CV_Assert
(
v
[
i
].
empty
()
);
v
[
i
].
flags
=
(
v
[
i
].
flags
&
~
CV_MAT_TYPE_MASK
)
|
type
;
}
}
return
;
}
...
...
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