Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
b8f5fcf3
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,发现更多精彩内容 >>
提交
b8f5fcf3
编写于
11月 21, 2013
作者:
R
Roman Donchenko
提交者:
OpenCV Buildbot
11月 21, 2013
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1776 from philippefoubert:merge_upstream_2.4_ximea
上级
623a02c6
78e16a90
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
10 deletion
+11
-10
cmake/OpenCVFindXimea.cmake
cmake/OpenCVFindXimea.cmake
+1
-1
modules/highgui/CMakeLists.txt
modules/highgui/CMakeLists.txt
+2
-2
modules/highgui/src/cap_ximea.cpp
modules/highgui/src/cap_ximea.cpp
+8
-7
未找到文件。
cmake/OpenCVFindXimea.cmake
浏览文件 @
b8f5fcf3
...
...
@@ -23,7 +23,7 @@ if(WIN32)
if
(
EXISTS
${
XIMEA_PATH
}
)
set
(
XIMEA_FOUND 1
)
# set LIB folders
if
(
CMAKE_CL
_64
)
if
(
X86
_64
)
set
(
XIMEA_LIBRARY_DIR
"
${
XIMEA_PATH
}
/x64"
)
else
()
set
(
XIMEA_LIBRARY_DIR
"
${
XIMEA_PATH
}
/x86"
)
...
...
modules/highgui/CMakeLists.txt
浏览文件 @
b8f5fcf3
...
...
@@ -167,9 +167,9 @@ if(HAVE_XIMEA)
list
(
APPEND highgui_srcs src/cap_ximea.cpp
)
ocv_include_directories
(
${
XIMEA_PATH
}
)
if
(
XIMEA_LIBRARY_DIR
)
link_directories
(
${
XIMEA_LIBRARY_DIR
}
)
link_directories
(
"
${
XIMEA_LIBRARY_DIR
}
"
)
endif
()
if
(
CMAKE_CL
_64
)
if
(
X86
_64
)
list
(
APPEND HIGHGUI_LIBRARIES m3apiX64
)
else
()
list
(
APPEND HIGHGUI_LIBRARIES m3api
)
...
...
modules/highgui/src/cap_ximea.cpp
浏览文件 @
b8f5fcf3
...
...
@@ -75,34 +75,35 @@ bool CvCaptureCAM_XIMEA::open( int wIndex )
return
false
;
}
int
width
=
0
;
int
height
=
0
;
int
isColor
=
0
;
// always use auto exposure/gain
mvret
=
xiSetParamInt
(
hmv
,
XI_PRM_AEAG
,
1
);
HandleXiResult
(
mvret
);
int
width
=
0
;
mvret
=
xiGetParamInt
(
hmv
,
XI_PRM_WIDTH
,
&
width
);
HandleXiResult
(
mvret
);
int
height
=
0
;
mvret
=
xiGetParamInt
(
hmv
,
XI_PRM_HEIGHT
,
&
height
);
HandleXiResult
(
mvret
);
int
isColor
=
0
;
mvret
=
xiGetParamInt
(
hmv
,
XI_PRM_IMAGE_IS_COLOR
,
&
isColor
);
HandleXiResult
(
mvret
);
if
(
isColor
)
// for color cameras
if
(
isColor
)
// for color cameras
{
// default image format RGB24
mvret
=
xiSetParamInt
(
hmv
,
XI_PRM_IMAGE_DATA_FORMAT
,
XI_RGB24
);
HandleXiResult
(
mvret
);
// always use auto white bal
l
ance for color cameras
// always use auto white balance for color cameras
mvret
=
xiSetParamInt
(
hmv
,
XI_PRM_AUTO_WB
,
1
);
HandleXiResult
(
mvret
);
// allocate frame buffer for RGB24 image
frame
=
cvCreateImage
(
cvSize
(
width
,
height
),
IPL_DEPTH_8U
,
3
);
frame
=
cvCreateImage
(
cvSize
(
width
,
height
),
IPL_DEPTH_8U
,
3
);
}
else
// for mono cameras
{
...
...
@@ -111,7 +112,7 @@ bool CvCaptureCAM_XIMEA::open( int wIndex )
HandleXiResult
(
mvret
);
// allocate frame buffer for MONO8 image
frame
=
cvCreateImage
(
cvSize
(
width
,
height
),
IPL_DEPTH_8U
,
1
);
frame
=
cvCreateImage
(
cvSize
(
width
,
height
),
IPL_DEPTH_8U
,
1
);
}
//default capture timeout 10s
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录