Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
edff6741
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 10 个月
通知
995
Star
71100
Fork
55580
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
edff6741
编写于
11月 16, 2010
作者:
A
Anatoly Baksheev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added default detector for winSize(64,128) for hog on gpu
上级
be54f123
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
2 deletion
+11
-2
modules/core/src/system.cpp
modules/core/src/system.cpp
+2
-2
modules/gpu/include/opencv2/gpu/gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+1
-0
modules/gpu/src/hog.cpp
modules/gpu/src/hog.cpp
+6
-0
tests/gpu/src/hog.cpp
tests/gpu/src/hog.cpp
+2
-0
未找到文件。
modules/core/src/system.cpp
浏览文件 @
edff6741
...
...
@@ -528,8 +528,8 @@ CV_IMPL const char* cvErrorStr( int status )
case
CV_StsBadMemBlock
:
return
"Memory block has been corrupted"
;
case
CV_StsAssert
:
return
"Assertion failed"
;
case
CV_GpuNotSupported
:
return
"No GPU support"
;
case
CV_GpuApiCallError
:
return
"G
PU API error
"
;
case
CV_GpuNppCallError
:
return
"N
PP API error
"
;
case
CV_GpuApiCallError
:
return
"G
pu Api call
"
;
case
CV_GpuNppCallError
:
return
"N
pp Api call
"
;
};
sprintf
(
buf
,
"Unknown %s code %d"
,
status
>=
0
?
"status"
:
"error"
,
status
);
...
...
modules/gpu/include/opencv2/gpu/gpu.hpp
浏览文件 @
edff6741
...
...
@@ -995,6 +995,7 @@ namespace cv
double
getWinSigma
()
const
;
static
vector
<
float
>
getDefaultPeopleDetector
();
static
vector
<
float
>
getDefaultPeopleDetector_64x128
();
void
setSVMDetector
(
const
vector
<
float
>&
detector
);
bool
checkDetectorSize
()
const
;
...
...
modules/gpu/src/hog.cpp
浏览文件 @
edff6741
...
...
@@ -56,6 +56,7 @@ void cv::gpu::HOGDescriptor::detectMultiScale(const GpuMat&, vector<Rect>&, doub
int
cv
::
gpu
::
HOGDescriptor
::
numPartsWithin
(
int
,
int
,
int
)
{
throw_nogpu
();
return
0
;
}
cv
::
Size
cv
::
gpu
::
HOGDescriptor
::
numPartsWithin
(
cv
::
Size
,
cv
::
Size
,
cv
::
Size
)
{
throw_nogpu
();
return
cv
::
Size
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
()
{
throw_nogpu
();
return
std
::
vector
<
float
>
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector_64x128
()
{
throw_nogpu
();
return
std
::
vector
<
float
>
();
}
#else
...
...
@@ -309,6 +310,11 @@ cv::Size cv::gpu::HOGDescriptor::numPartsWithin(cv::Size size, cv::Size part_siz
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
()
{
return
getDefaultPeopleDetector_64x128
();
}
std
::
vector
<
float
>
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector_64x128
()
{
static
const
float
detector
[]
=
{
0.05359386
f
,
-
0.14721455
f
,
-
0.05532170
f
,
0.05077307
f
,
...
...
tests/gpu/src/hog.cpp
浏览文件 @
edff6741
...
...
@@ -109,6 +109,8 @@ struct CV_GpuHogTest : public CvTest
cv
::
gpu
::
HOGDescriptor
hog
;
hog
.
setSVMDetector
(
cv
::
gpu
::
HOGDescriptor
::
getDefaultPeopleDetector
());
//cpu detector may be updated soon
//hog.setSVMDetector(cv::HOGDescriptor::getDefaultPeopleDetector());
std
::
vector
<
cv
::
Point
>
locations
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录