Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
6b6a63ba
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,发现更多精彩内容 >>
提交
6b6a63ba
编写于
2月 15, 2011
作者:
A
Anatoly Baksheev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed some warnings
GPU: TargetArchs -> added FEATURE_SET prefix.
上级
725d83b0
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
21 addition
and
21 deletion
+21
-21
doc/gpu_initialization.tex
doc/gpu_initialization.tex
+3
-3
modules/gpu/include/opencv2/gpu/gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+8
-8
modules/gpu/src/brute_force_matcher.cpp
modules/gpu/src/brute_force_matcher.cpp
+2
-2
modules/gpu/src/imgproc_gpu.cpp
modules/gpu/src/imgproc_gpu.cpp
+2
-2
modules/gpu/src/mssegmentation.cpp
modules/gpu/src/mssegmentation.cpp
+1
-1
modules/gpu/src/surf.cpp
modules/gpu/src/surf.cpp
+2
-2
samples/cpp/convexhull.cpp
samples/cpp/convexhull.cpp
+1
-1
samples/cpp/demhist.cpp
samples/cpp/demhist.cpp
+1
-1
samples/cpp/squares.cpp
samples/cpp/squares.cpp
+1
-1
未找到文件。
doc/gpu_initialization.tex
浏览文件 @
6b6a63ba
...
...
@@ -28,9 +28,9 @@ GPU compute features.
\begin{lstlisting}
enum GpuFeature
{
COMPUTE
_
10,
COMPUTE
_
11,
COMPUTE
_
12,
COMPUTE
_
13,
COMPUTE
_
20,
COMPUTE
_
21,
FEATURE
_
SET
_
COMPUTE
_
10, FEATURE
_
SET
_
COMPUTE
_
11,
FEATURE
_
SET
_
COMPUTE
_
12, FEATURE
_
SET
_
COMPUTE
_
13,
FEATURE
_
SET
_
COMPUTE
_
20, FEATURE
_
SET
_
COMPUTE
_
21,
ATOMICS, NATIVE
_
DOUBLE
}
;
\end{lstlisting}
...
...
modules/gpu/include/opencv2/gpu/gpu.hpp
浏览文件 @
6b6a63ba
...
...
@@ -66,14 +66,14 @@ namespace cv
enum
GpuFeature
{
COMPUTE_10
=
10
,
COMPUTE_11
=
11
,
COMPUTE_12
=
12
,
COMPUTE_13
=
13
,
COMPUTE_20
=
20
,
COMPUTE_21
=
21
,
ATOMICS
=
COMPUTE_11
,
NATIVE_DOUBLE
=
COMPUTE_13
FEATURE_SET_
COMPUTE_10
=
10
,
FEATURE_SET_
COMPUTE_11
=
11
,
FEATURE_SET_
COMPUTE_12
=
12
,
FEATURE_SET_
COMPUTE_13
=
13
,
FEATURE_SET_
COMPUTE_20
=
20
,
FEATURE_SET_
COMPUTE_21
=
21
,
ATOMICS
=
FEATURE_SET_
COMPUTE_11
,
NATIVE_DOUBLE
=
FEATURE_SET_
COMPUTE_13
};
class
CV_EXPORTS
TargetArchs
...
...
modules/gpu/src/brute_force_matcher.cpp
浏览文件 @
6b6a63ba
...
...
@@ -192,7 +192,7 @@ void cv::gpu::BruteForceMatcher_GPU_base::matchSingle(const GpuMat& queryDescs,
match_caller_t
func
=
match_callers
[
distType
][
queryDescs
.
depth
()];
CV_Assert
(
func
!=
0
);
bool
cc_12
=
TargetArchs
::
builtWith
(
COMPUTE_12
)
&&
DeviceInfo
().
supports
(
COMPUTE_12
);
bool
cc_12
=
TargetArchs
::
builtWith
(
FEATURE_SET_COMPUTE_12
)
&&
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_12
);
// For single train there is no need to save imgIdx, so we just save imgIdx to trainIdx.
// trainIdx store after imgIdx, so we doesn't lose it value.
...
...
@@ -320,7 +320,7 @@ void cv::gpu::BruteForceMatcher_GPU_base::matchCollection(const GpuMat& queryDes
match_caller_t
func
=
match_callers
[
distType
][
queryDescs
.
depth
()];
CV_Assert
(
func
!=
0
);
bool
cc_12
=
TargetArchs
::
builtWith
(
COMPUTE_12
)
&&
DeviceInfo
().
supports
(
COMPUTE_12
);
bool
cc_12
=
TargetArchs
::
builtWith
(
FEATURE_SET_COMPUTE_12
)
&&
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_12
);
func
(
queryDescs
,
trainCollection
,
maskCollection
,
trainIdx
,
imgIdx
,
distance
,
cc_12
);
}
...
...
modules/gpu/src/imgproc_gpu.cpp
浏览文件 @
6b6a63ba
...
...
@@ -128,7 +128,7 @@ void cv::gpu::remap(const GpuMat& src, GpuMat& dst, const GpuMat& xmap, const Gp
void
cv
::
gpu
::
meanShiftFiltering
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
int
sp
,
int
sr
,
TermCriteria
criteria
)
{
CV_Assert
(
TargetArchs
::
builtWith
(
COMPUTE_12
)
&&
DeviceInfo
().
supports
(
COMPUTE_12
));
CV_Assert
(
TargetArchs
::
builtWith
(
FEATURE_SET_COMPUTE_12
)
&&
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_12
));
if
(
src
.
empty
()
)
CV_Error
(
CV_StsBadArg
,
"The input image is empty"
);
...
...
@@ -156,7 +156,7 @@ void cv::gpu::meanShiftFiltering(const GpuMat& src, GpuMat& dst, int sp, int sr,
void
cv
::
gpu
::
meanShiftProc
(
const
GpuMat
&
src
,
GpuMat
&
dstr
,
GpuMat
&
dstsp
,
int
sp
,
int
sr
,
TermCriteria
criteria
)
{
CV_Assert
(
TargetArchs
::
builtWith
(
COMPUTE_12
)
&&
DeviceInfo
().
supports
(
COMPUTE_12
));
CV_Assert
(
TargetArchs
::
builtWith
(
FEATURE_SET_COMPUTE_12
)
&&
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_12
));
if
(
src
.
empty
()
)
CV_Error
(
CV_StsBadArg
,
"The input image is empty"
);
...
...
modules/gpu/src/mssegmentation.cpp
浏览文件 @
6b6a63ba
...
...
@@ -227,7 +227,7 @@ inline int dist2(const cv::Vec2s& lhs, const cv::Vec2s& rhs)
void
cv
::
gpu
::
meanShiftSegmentation
(
const
GpuMat
&
src
,
Mat
&
dst
,
int
sp
,
int
sr
,
int
minsize
,
TermCriteria
criteria
)
{
CV_Assert
(
TargetArchs
::
builtWith
(
COMPUTE_12
)
&&
DeviceInfo
().
supports
(
COMPUTE_12
));
CV_Assert
(
TargetArchs
::
builtWith
(
FEATURE_SET_COMPUTE_12
)
&&
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_12
));
CV_Assert
(
src
.
type
()
==
CV_8UC4
);
const
int
nrows
=
src
.
rows
;
...
...
modules/gpu/src/surf.cpp
浏览文件 @
6b6a63ba
...
...
@@ -174,7 +174,7 @@ namespace
{
typedef
void
(
*
fasthessian_t
)(
PtrStepf
hessianBuffer
,
int
x_size
,
int
y_size
,
const
dim3
&
threads
);
const
fasthessian_t
fasthessian
=
DeviceInfo
().
supports
(
COMPUTE_13
)
?
fasthessian_gpu
:
fasthessian_gpu_old
;
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_13
)
?
fasthessian_gpu
:
fasthessian_gpu_old
;
dim3
threads
=
calcBlockSize
(
nIntervals
);
for
(
int
octave
=
0
;
octave
<
nOctaves
;
++
octave
)
...
...
@@ -234,7 +234,7 @@ namespace
const
KeyPoint_GPU
*
features
,
int
nFeatures
);
const
compute_descriptors_t
compute_descriptors
=
DeviceInfo
().
supports
(
COMPUTE_13
)
?
compute_descriptors_gpu
:
compute_descriptors_gpu_old
;
DeviceInfo
().
supports
(
FEATURE_SET_
COMPUTE_13
)
?
compute_descriptors_gpu
:
compute_descriptors_gpu_old
;
if
(
keypoints
.
cols
>
0
)
{
...
...
samples/cpp/convexhull.cpp
浏览文件 @
6b6a63ba
...
...
@@ -13,7 +13,7 @@ void help()
<<
"./convexhull
\n
"
<<
endl
;
}
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
/*argc*/
,
char
**
/*argv*/
)
{
Mat
img
(
500
,
500
,
CV_8UC3
);
RNG
&
rng
=
theRNG
();
...
...
samples/cpp/demhist.cpp
浏览文件 @
6b6a63ba
...
...
@@ -12,7 +12,7 @@ int _contrast = 100;
Mat
image
;
/* brightness/contrast callback function */
void
updateBrightnessContrast
(
int
arg
,
void
*
)
void
updateBrightnessContrast
(
int
/*arg*/
,
void
*
)
{
int
histSize
=
64
;
int
brightness
=
_brightness
-
100
;
...
...
samples/cpp/squares.cpp
浏览文件 @
6b6a63ba
...
...
@@ -139,7 +139,7 @@ void drawSquares( Mat& image, const vector<vector<Point> >& squares )
}
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
/*argc*/
,
char
**
/*argv*/
)
{
static
const
char
*
names
[]
=
{
"pic1.png"
,
"pic2.png"
,
"pic3.png"
,
"pic4.png"
,
"pic5.png"
,
"pic6.png"
,
0
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录