Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
259e41da
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
259e41da
编写于
4月 07, 2015
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reverted "typedef _InputArray InputArray", fixed warning from doxygen
上级
052593c7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
17 deletion
+24
-17
modules/core/include/opencv2/core.hpp
modules/core/include/opencv2/core.hpp
+4
-0
modules/core/include/opencv2/core/mat.hpp
modules/core/include/opencv2/core/mat.hpp
+5
-6
modules/core/include/opencv2/core/mat.inl.hpp
modules/core/include/opencv2/core/mat.inl.hpp
+7
-3
modules/core/src/matrix.cpp
modules/core/src/matrix.cpp
+1
-1
modules/imgproc/src/connectedcomponents.cpp
modules/imgproc/src/connectedcomponents.cpp
+7
-7
未找到文件。
modules/core/include/opencv2/core.hpp
浏览文件 @
259e41da
...
...
@@ -2958,6 +2958,9 @@ public:
/** @brief Loads algorithm from the file
@param filename Name of the file to read.
@param objname The optional name of the node to read (if empty, the first top-level node will be used)
This is static template method of Algorithm. It's usage is following (in the case of SVM):
@code
Ptr<SVM> svm = Algorithm::load<SVM>("my_svm_model.xml");
...
...
@@ -2977,6 +2980,7 @@ public:
/** @brief Loads algorithm from a String
@param strModel The string variable containing the model you want to load.
@param objname The optional name of the node to read (if empty, the first top-level node will be used)
This is static template method of Algorithm. It's usage is following (in the case of SVM):
@code
...
...
modules/core/include/opencv2/core/mat.hpp
浏览文件 @
259e41da
...
...
@@ -70,7 +70,7 @@ class CV_EXPORTS _OutputArray;
It is defined as:
@code
class InputArray; // = _InputArray
typedef const _InputArray& InputArray;
@endcode
where _InputArray is a class that can be constructed from `Mat`, `Mat_<T>`, `Matx<T, m, n>`,
`std::vector<T>`, `std::vector<std::vector<T> >` or `std::vector<Mat>`. It can also be constructed
...
...
@@ -186,6 +186,7 @@ public:
_InputArray
(
const
std
::
vector
<
UMat
>&
umv
);
Mat
getMat
(
int
idx
=-
1
)
const
;
Mat
getMat_
(
int
idx
=-
1
)
const
;
UMat
getUMat
(
int
idx
=-
1
)
const
;
void
getMatVector
(
std
::
vector
<
Mat
>&
mv
)
const
;
void
getUMatVector
(
std
::
vector
<
UMat
>&
umv
)
const
;
...
...
@@ -361,15 +362,13 @@ public:
template
<
typename
_Tp
,
int
m
,
int
n
>
_InputOutputArray
(
const
Matx
<
_Tp
,
m
,
n
>&
matx
);
_InputOutputArray
(
const
UMat
&
m
);
_InputOutputArray
(
const
std
::
vector
<
UMat
>&
vec
);
explicit
_InputOutputArray
(
const
_OutputArray
&
o
);
};
typedef
_InputArray
InputArray
;
typedef
const
_InputArray
&
InputArray
;
typedef
InputArray
InputArrayOfArrays
;
typedef
_OutputArray
OutputArray
;
typedef
const
_OutputArray
&
OutputArray
;
typedef
OutputArray
OutputArrayOfArrays
;
typedef
_InputOutputArray
InputOutputArray
;
typedef
const
_InputOutputArray
&
InputOutputArray
;
typedef
InputOutputArray
InputOutputArrayOfArrays
;
CV_EXPORTS
InputOutputArray
noArray
();
...
...
modules/core/include/opencv2/core/mat.inl.hpp
浏览文件 @
259e41da
...
...
@@ -114,6 +114,13 @@ inline _InputArray::_InputArray(const cuda::HostMem& cuda_mem)
inline
_InputArray
::~
_InputArray
()
{}
inline
Mat
_InputArray
::
getMat
(
int
i
)
const
{
if
(
kind
()
==
MAT
&&
i
<
0
)
return
*
(
const
Mat
*
)
obj
;
return
getMat_
(
i
);
}
inline
bool
_InputArray
::
isMat
()
const
{
return
kind
()
==
_InputArray
::
MAT
;
}
inline
bool
_InputArray
::
isUMat
()
const
{
return
kind
()
==
_InputArray
::
UMAT
;
}
inline
bool
_InputArray
::
isMatVector
()
const
{
return
kind
()
==
_InputArray
::
STD_VECTOR_MAT
;
}
...
...
@@ -294,9 +301,6 @@ inline _InputOutputArray::_InputOutputArray(const ogl::Buffer& buf)
inline
_InputOutputArray
::
_InputOutputArray
(
const
cuda
::
HostMem
&
cuda_mem
)
{
init
(
FIXED_TYPE
+
FIXED_SIZE
+
CUDA_HOST_MEM
+
ACCESS_RW
,
&
cuda_mem
);
}
inline
_InputOutputArray
::
_InputOutputArray
(
const
_OutputArray
&
o
)
{
init
(
o
.
getFlags
(),
o
.
getObj
(),
o
.
getSz
());
}
//////////////////////////////////////////// Mat //////////////////////////////////////////
inline
...
...
modules/core/src/matrix.cpp
浏览文件 @
259e41da
...
...
@@ -1113,7 +1113,7 @@ void scalarToRawData(const Scalar& s, void* _buf, int type, int unroll_to)
Input/Output Array
\*************************************************************************************************/
Mat
_InputArray
::
getMat
(
int
i
)
const
Mat
_InputArray
::
getMat
_
(
int
i
)
const
{
int
k
=
kind
();
int
accessFlags
=
flags
&
ACCESS_MASK
;
...
...
modules/imgproc/src/connectedcomponents.cpp
浏览文件 @
259e41da
...
...
@@ -65,20 +65,20 @@ namespace cv{
};
struct
CCStatsOp
{
OutputArray
_mstatsv
;
const
_OutputArray
*
_mstatsv
;
cv
::
Mat
statsv
;
OutputArray
_mcentroidsv
;
const
_OutputArray
*
_mcentroidsv
;
cv
::
Mat
centroidsv
;
std
::
vector
<
Point2ui64
>
integrals
;
CCStatsOp
(
OutputArray
_statsv
,
OutputArray
_centroidsv
)
:
_mstatsv
(
_statsv
),
_mcentroidsv
(
_centroidsv
){
CCStatsOp
(
OutputArray
_statsv
,
OutputArray
_centroidsv
)
:
_mstatsv
(
&
_statsv
),
_mcentroidsv
(
&
_centroidsv
){
}
inline
void
init
(
int
nlabels
){
_mstatsv
.
create
(
cv
::
Size
(
CC_STAT_MAX
,
nlabels
),
cv
::
DataType
<
int
>::
type
);
statsv
=
_mstatsv
.
getMat
();
_mcentroidsv
.
create
(
cv
::
Size
(
2
,
nlabels
),
cv
::
DataType
<
double
>::
type
);
centroidsv
=
_mcentroidsv
.
getMat
();
_mstatsv
->
create
(
cv
::
Size
(
CC_STAT_MAX
,
nlabels
),
cv
::
DataType
<
int
>::
type
);
statsv
=
_mstatsv
->
getMat
();
_mcentroidsv
->
create
(
cv
::
Size
(
2
,
nlabels
),
cv
::
DataType
<
double
>::
type
);
centroidsv
=
_mcentroidsv
->
getMat
();
for
(
int
l
=
0
;
l
<
(
int
)
nlabels
;
++
l
){
int
*
row
=
(
int
*
)
&
statsv
.
at
<
int
>
(
l
,
0
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录