Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
60acd91c
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
60acd91c
编写于
6月 29, 2010
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added Eigen2 support; fixed compile errors on Ubuntu 10.04
上级
7ec4b59f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
34 addition
and
7 deletion
+34
-7
CMakeLists.txt
CMakeLists.txt
+23
-3
cvconfig.h.cmake
cvconfig.h.cmake
+4
-1
modules/core/include/opencv2/core/core.hpp
modules/core/include/opencv2/core/core.hpp
+2
-2
modules/core/include/opencv2/core/internal.hpp
modules/core/include/opencv2/core/internal.hpp
+4
-0
modules/core/include/opencv2/core/operations.hpp
modules/core/include/opencv2/core/operations.hpp
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
60acd91c
...
...
@@ -280,6 +280,7 @@ if(APPLE)
endif
()
set
(
WITH_TBB OFF CACHE BOOL
"Include TBB support"
)
set
(
WITH_EIGEN2 OFF CACHE BOOL
"Include Eigen2 support"
)
# ===================================================
# Macros that checks if module have been installed.
...
...
@@ -347,7 +348,7 @@ if(UNIX)
if
(
WITH_PVAPI
)
find_path
(
PVAPI_INCLUDE_PATH
"PvApi.h"
PATHS
"/usr/
include"
"/usr/local
/include"
PATHS
"/usr/
local/include"
"/usr
/include"
DOC
"The path to PvAPI header"
)
if
(
PVAPI_INCLUDE_PATH
)
set
(
HAVE_PVAPI 1
)
...
...
@@ -557,8 +558,8 @@ if (WITH_TBB)
endif
()
if
(
APPLE
)
set
(
TBB_DEFAULT_INCLUDE_DIRS
"/usr/include"
"/usr/
local/
include"
)
"/usr/
local/
include"
"/usr/include"
)
endif
()
if
(
WIN32
)
set
(
TBB_DEFAULT_INCLUDE_DIRS
...
...
@@ -624,6 +625,19 @@ if (WITH_TBB)
endif
()
endif
()
############################## Eigen2 ##############################
if
(
WITH_EIGEN2
)
find_path
(
EIGEN2_INCLUDE_PATH
"Eigen/Core"
PATHS
"/usr/local/include/eigen2"
"/opt/include/eigen2"
"/usr/include/eigen2"
DOC
"The path to Eigen2 headers"
)
if
(
EIGEN2_INCLUDE_PATH
)
include_directories
(
${
EIGEN2_INCLUDE_PATH
}
)
set
(
HAVE_EIGEN2 1
)
endif
()
endif
()
############################### IPP ################################
set
(
IPP_FOUND
)
set
(
OPENCV_LOADER_PATH
)
...
...
@@ -1251,6 +1265,12 @@ else()
message
(
STATUS
" Use TBB: NO"
)
endif
()
if
(
HAVE_EIGEN2
)
message
(
STATUS
" Use Eigen2: YES"
)
else
()
message
(
STATUS
" Use Eigen2: NO"
)
endif
()
message
(
STATUS
""
)
message
(
STATUS
" Documentation: "
)
...
...
cvconfig.h.cmake
浏览文件 @
60acd91c
...
...
@@ -155,4 +155,7 @@
#cmakedefine WORDS_BIGENDIAN
/* Intel Threading Building Blocks */
#cmakedefine HAVE_TBB
\ No newline at end of file
#cmakedefine HAVE_TBB
/* Eigen2 Matrix & Linear Algebra Library */
#cmakedefine HAVE_EIGEN2
modules/core/include/opencv2/core/core.hpp
浏览文件 @
60acd91c
...
...
@@ -566,7 +566,7 @@ public:
static
Matx
eye
();
static
Matx
diag
(
const
Vec
<
_Tp
,
MIN
(
m
,
n
)
>&
d
);
static
Matx
randu
(
_Tp
a
,
_Tp
b
);
static
Matx
randn
(
_Tp
m
,
_Tp
sigma
);
static
Matx
randn
(
_Tp
a
,
_Tp
b
);
//! convertion to another data type
template
<
typename
T2
>
operator
Matx
<
T2
,
m
,
n
>
()
const
;
...
...
@@ -575,7 +575,7 @@ public:
template
<
int
m1
,
int
n1
>
Matx
<
_Tp
,
m1
,
n1
>
reshape
()
const
;
//! extract part of the matrix
template
<
int
m1
,
int
n1
>
Matx
<
_Tp
,
m1
,
n1
>
minor
(
int
i
,
int
j
)
const
;
template
<
int
m1
,
int
n1
>
Matx
<
_Tp
,
m1
,
n1
>
get_
minor
(
int
i
,
int
j
)
const
;
//! extract the matrix row
Matx
<
_Tp
,
1
,
n
>
row
(
int
i
)
const
;
...
...
modules/core/include/opencv2/core/internal.hpp
浏览文件 @
60acd91c
...
...
@@ -134,6 +134,10 @@ CV_INLINE IppiSize ippiSize(int width, int height)
#endif
#endif
#ifdef HAVE_EIGEN2
#include "opencv2/core/eigen.hpp"
#endif
#ifdef __cplusplus
#ifdef HAVE_TBB
...
...
modules/core/include/opencv2/core/operations.hpp
浏览文件 @
60acd91c
...
...
@@ -734,7 +734,7 @@ Matx<_Tp, m1, n1> Matx<_Tp, m, n>::reshape() const
template
<
typename
_Tp
,
int
m
,
int
n
>
template
<
int
m1
,
int
n1
>
inline
Matx
<
_Tp
,
m1
,
n1
>
Matx
<
_Tp
,
m
,
n
>::
minor
(
int
i
,
int
j
)
const
Matx
<
_Tp
,
m1
,
n1
>
Matx
<
_Tp
,
m
,
n
>::
get_
minor
(
int
i
,
int
j
)
const
{
CV_DbgAssert
(
0
<=
i
&&
i
+
m1
<=
m
&&
0
<=
j
&&
j
+
n1
<=
n
);
Matx
<
_Tp
,
m1
,
n1
>
s
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录