Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
f355f798
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,发现更多精彩内容 >>
提交
f355f798
编写于
4月 19, 2012
作者:
A
Alexey Spizhevoy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor changes in videostab module and sample
上级
f42eea10
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
modules/videostab/src/wobble_suppression.cpp
modules/videostab/src/wobble_suppression.cpp
+1
-1
samples/cpp/videostab.cpp
samples/cpp/videostab.cpp
+5
-5
未找到文件。
modules/videostab/src/wobble_suppression.cpp
浏览文件 @
f355f798
...
@@ -120,7 +120,7 @@ void MoreAccurateMotionWobbleSuppressor::suppress(int idx, const Mat &frame, Mat
...
@@ -120,7 +120,7 @@ void MoreAccurateMotionWobbleSuppressor::suppress(int idx, const Mat &frame, Mat
if
(
result
.
data
==
frame
.
data
)
if
(
result
.
data
==
frame
.
data
)
result
=
Mat
(
frame
.
size
(),
frame
.
type
());
result
=
Mat
(
frame
.
size
(),
frame
.
type
());
remap
(
frame
,
result
,
mapx_
,
mapy_
,
INTER_L
ANCZOS4
,
BORDER_REPLICATE
);
remap
(
frame
,
result
,
mapx_
,
mapy_
,
INTER_L
INEAR
,
BORDER_REPLICATE
);
}
}
}
// namespace videostab
}
// namespace videostab
...
...
samples/cpp/videostab.cpp
浏览文件 @
f355f798
...
@@ -153,7 +153,7 @@ void printHelp()
...
@@ -153,7 +153,7 @@ void printHelp()
" Save motions estimated for wobble suppression. The default is no.
\n
"
" Save motions estimated for wobble suppression. The default is no.
\n
"
" -lm2, --load-motions2=(<file_path>|no)
\n
"
" -lm2, --load-motions2=(<file_path>|no)
\n
"
" Load motions for wobble suppression from file. The default is no.
\n\n
"
" Load motions for wobble suppression from file. The default is no.
\n\n
"
" -
-
gpu=(yes|no)
\n
"
" -gpu=(yes|no)
\n
"
" Use GPU optimization whenever possible. The default is no.
\n\n
"
" Use GPU optimization whenever possible. The default is no.
\n\n
"
" -o, --output=(no|<file_path>)
\n
"
" -o, --output=(no|<file_path>)
\n
"
" Set output file path explicitely. The default is stabilized.avi.
\n
"
" Set output file path explicitely. The default is stabilized.avi.
\n
"
...
@@ -184,7 +184,7 @@ int main(int argc, const char **argv)
...
@@ -184,7 +184,7 @@ int main(int argc, const char **argv)
"{ lm | load-motions | no | }"
"{ lm | load-motions | no | }"
"{ r | radius | 15 | }"
"{ r | radius | 15 | }"
"{ | stdev | auto | }"
"{ | stdev | auto | }"
"{ lp
| lp
-stab | no | }"
"{ lp
s | lin-prog
-stab | no | }"
"{ | lp-trim-ratio | auto | }"
"{ | lp-trim-ratio | auto | }"
"{ | lp-w1 | 1 | }"
"{ | lp-w1 | 1 | }"
"{ | lp-w2 | 10 | }"
"{ | lp-w2 | 10 | }"
...
@@ -213,7 +213,7 @@ int main(int argc, const char **argv)
...
@@ -213,7 +213,7 @@ int main(int argc, const char **argv)
"{ | ws-extra-kps | 0 | }"
"{ | ws-extra-kps | 0 | }"
"{ sm2 | save-motions2 | no | }"
"{ sm2 | save-motions2 | no | }"
"{ lm2 | load-motions2 | no | }"
"{ lm2 | load-motions2 | no | }"
"{
| gpu
| no }"
"{
gpu |
| no }"
"{ o | output | stabilized.avi | }"
"{ o | output | stabilized.avi | }"
"{ | fps | auto | }"
"{ | fps | auto | }"
"{ q | quiet | false | }"
"{ q | quiet | false | }"
...
@@ -249,14 +249,14 @@ int main(int argc, const char **argv)
...
@@ -249,14 +249,14 @@ int main(int argc, const char **argv)
StabilizerBase
*
stabilizer
;
StabilizerBase
*
stabilizer
;
bool
isTwoPass
=
bool
isTwoPass
=
arg
(
"est-trim"
)
==
"yes"
||
arg
(
"wobble-suppress"
)
==
"yes"
||
arg
(
"l
p
-stab"
)
==
"yes"
;
arg
(
"est-trim"
)
==
"yes"
||
arg
(
"wobble-suppress"
)
==
"yes"
||
arg
(
"l
in-prog
-stab"
)
==
"yes"
;
if
(
isTwoPass
)
if
(
isTwoPass
)
{
{
TwoPassStabilizer
*
twoPassStabilizer
=
new
TwoPassStabilizer
();
TwoPassStabilizer
*
twoPassStabilizer
=
new
TwoPassStabilizer
();
stabilizer
=
twoPassStabilizer
;
stabilizer
=
twoPassStabilizer
;
twoPassStabilizer
->
setEstimateTrimRatio
(
arg
(
"est-trim"
)
==
"yes"
);
twoPassStabilizer
->
setEstimateTrimRatio
(
arg
(
"est-trim"
)
==
"yes"
);
if
(
arg
(
"l
p
-stab"
)
==
"yes"
)
if
(
arg
(
"l
in-prog
-stab"
)
==
"yes"
)
{
{
LpMotionStabilizer
*
stab
=
new
LpMotionStabilizer
();
LpMotionStabilizer
*
stab
=
new
LpMotionStabilizer
();
stab
->
setFrameSize
(
Size
(
source
->
width
(),
source
->
height
()));
stab
->
setFrameSize
(
Size
(
source
->
width
(),
source
->
height
()));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录