Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
13134595
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,发现更多精彩内容 >>
提交
13134595
编写于
11月 15, 2010
作者:
A
Alexey Spizhevoy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added HOGDescriptor on GPU
上级
7bd4ba99
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
1838 addition
and
1 deletion
+1838
-1
modules/gpu/CMakeLists.txt
modules/gpu/CMakeLists.txt
+1
-1
modules/gpu/include/opencv2/gpu/gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+56
-0
modules/gpu/src/cuda/hog.cu
modules/gpu/src/cuda/hog.cu
+654
-0
modules/gpu/src/hog.cpp
modules/gpu/src/hog.cpp
+1127
-0
未找到文件。
modules/gpu/CMakeLists.txt
浏览文件 @
13134595
set
(
name
"gpu"
)
set
(
DEPS
"opencv_core"
"opencv_imgproc"
)
set
(
DEPS
"opencv_core"
"opencv_imgproc"
"opencv_objdetect"
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
opencv_gpu
)
...
...
modules/gpu/include/opencv2/gpu/gpu.hpp
浏览文件 @
13134595
...
...
@@ -46,6 +46,7 @@
#include <vector>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/gpu/devmem2d.hpp"
namespace
cv
...
...
@@ -973,8 +974,63 @@ namespace cv
GpuMat
table_color
;
GpuMat
table_space
;
};
struct
CV_EXPORTS
HOGDescriptor
{
public:
enum
{
DEFAULT_WIN_SIGMA
=
-
1
};
enum
{
DEFAULT_NLEVELS
=
64
};
HOGDescriptor
(
Size
win_size
=
Size
(
64
,
128
),
Size
block_size
=
Size
(
16
,
16
),
Size
block_stride
=
Size
(
8
,
8
),
Size
cell_size
=
Size
(
8
,
8
),
bool
gamma_correction
=
true
,
int
nbins
=
9
,
double
win_sigma
=
DEFAULT_WIN_SIGMA
,
double
threshold_L2hys
=
0.2
,
int
nlevels
=
DEFAULT_NLEVELS
);
size_t
getDescriptorSize
()
const
;
size_t
getBlockHistogramSize
()
const
;
double
getWinSigma
()
const
;
static
vector
<
float
>
getDefaultPeopleDetector
();
void
setSVMDetector
(
const
vector
<
float
>&
detector
);
bool
checkDetectorSize
()
const
;
void
computeGradient
(
const
GpuMat
&
img
,
GpuMat
&
grad
,
GpuMat
&
qangle
);
void
detect
(
const
GpuMat
&
img
,
vector
<
Point
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
());
void
detectMultiScale
(
const
GpuMat
&
img
,
vector
<
Rect
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
(),
double
scale0
=
1.05
,
int
group_threshold
=
2
);
GpuMat
getLastBlockHists
()
const
;
Size
win_size
;
Size
block_size
;
Size
block_stride
;
Size
cell_size
;
bool
gamma_correction
;
int
nbins
;
double
win_sigma
;
double
threshold_L2hys
;
int
nlevels
;
// Coefficients of the separating plane
float
free_coef
;
GpuMat
detector
;
// Results of the last classification step
GpuMat
labels
;
Mat
labels_host
;
// Results of the last histogram evaluation step
GpuMat
block_hists
;
private:
static
int
numPartsWithin
(
int
size
,
int
part_size
,
int
stride
);
static
Size
numPartsWithin
(
Size
size
,
Size
part_size
,
Size
stride
);
};
}
//! Speckle filtering - filters small connected components on diparity image.
//! It sets pixel (x,y) to newVal if it coresponds to small CC with size < maxSpeckleSize.
//! Threshold for border between CC is diffThreshold;
...
...
modules/gpu/src/cuda/hog.cu
0 → 100644
浏览文件 @
13134595
此差异已折叠。
点击以展开。
modules/gpu/src/hog.cpp
0 → 100644
浏览文件 @
13134595
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录