Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
b0fe660d
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,发现更多精彩内容 >>
提交
b0fe660d
编写于
9月 06, 2011
作者:
A
Alexey Spizhevoy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed stitching module link error on Windows
上级
f2da7017
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
59 addition
and
58 deletion
+59
-58
modules/stitching/include/opencv2/stitching/autocalib.hpp
modules/stitching/include/opencv2/stitching/autocalib.hpp
+5
-4
modules/stitching/include/opencv2/stitching/blenders.hpp
modules/stitching/include/opencv2/stitching/blenders.hpp
+8
-8
modules/stitching/include/opencv2/stitching/camera.hpp
modules/stitching/include/opencv2/stitching/camera.hpp
+1
-1
modules/stitching/include/opencv2/stitching/exposure_compensate.hpp
...itching/include/opencv2/stitching/exposure_compensate.hpp
+4
-4
modules/stitching/include/opencv2/stitching/matchers.hpp
modules/stitching/include/opencv2/stitching/matchers.hpp
+6
-6
modules/stitching/include/opencv2/stitching/motion_estimators.hpp
...stitching/include/opencv2/stitching/motion_estimators.hpp
+10
-10
modules/stitching/include/opencv2/stitching/seam_finders.hpp
modules/stitching/include/opencv2/stitching/seam_finders.hpp
+5
-5
modules/stitching/include/opencv2/stitching/util.hpp
modules/stitching/include/opencv2/stitching/util.hpp
+8
-8
modules/stitching/include/opencv2/stitching/warpers.hpp
modules/stitching/include/opencv2/stitching/warpers.hpp
+12
-12
未找到文件。
modules/stitching/include/opencv2/stitching/autocalib.hpp
浏览文件 @
b0fe660d
...
...
@@ -50,12 +50,13 @@ namespace cv
// See "Construction of Panoramic Image Mosaics with Global and Local Alignment"
// by Heung-Yeung Shum and Richard Szeliski.
void
focalsFromHomography
(
const
Mat
&
H
,
double
&
f0
,
double
&
f1
,
bool
&
f0_ok
,
bool
&
f1_ok
);
void
CV_EXPORTS
focalsFromHomography
(
const
Mat
&
H
,
double
&
f0
,
double
&
f1
,
bool
&
f0_ok
,
bool
&
f1_ok
);
void
estimateFocal
(
const
std
::
vector
<
ImageFeatures
>
&
features
,
const
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
std
::
vector
<
double
>
&
focals
);
void
CV_EXPORTS
estimateFocal
(
const
std
::
vector
<
ImageFeatures
>
&
features
,
const
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
std
::
vector
<
double
>
&
focals
);
bool
calibrateRotatingCamera
(
const
std
::
vector
<
Mat
>
&
Hs
,
Mat
&
K
);
bool
CV_EXPORTS
calibrateRotatingCamera
(
const
std
::
vector
<
Mat
>
&
Hs
,
Mat
&
K
);
}
// namespace cv
...
...
modules/stitching/include/opencv2/stitching/blenders.hpp
浏览文件 @
b0fe660d
...
...
@@ -48,7 +48,7 @@ namespace cv
{
// Simple blender which puts one image over another
class
Blender
class
CV_EXPORTS
Blender
{
public:
enum
{
NO
,
FEATHER
,
MULTI_BAND
};
...
...
@@ -65,7 +65,7 @@ protected:
};
class
FeatherBlender
:
public
Blender
class
CV_EXPORTS
FeatherBlender
:
public
Blender
{
public:
FeatherBlender
(
float
sharpness
=
0.02
f
)
{
setSharpness
(
sharpness
);
}
...
...
@@ -83,7 +83,7 @@ private:
};
class
MultiBandBlender
:
public
Blender
class
CV_EXPORTS
MultiBandBlender
:
public
Blender
{
public:
MultiBandBlender
(
int
try_gpu
=
false
,
int
num_bands
=
5
);
...
...
@@ -106,16 +106,16 @@ private:
//////////////////////////////////////////////////////////////////////////////
// Auxiliary functions
void
normalizeUsingWeightMap
(
const
Mat
&
weight
,
Mat
&
src
);
void
CV_EXPORTS
normalizeUsingWeightMap
(
const
Mat
&
weight
,
Mat
&
src
);
void
createWeightMap
(
const
Mat
&
mask
,
float
sharpness
,
Mat
&
weight
);
void
CV_EXPORTS
createWeightMap
(
const
Mat
&
mask
,
float
sharpness
,
Mat
&
weight
);
void
createLaplacePyr
(
const
Mat
&
img
,
int
num_levels
,
std
::
vector
<
Mat
>&
pyr
);
void
CV_EXPORTS
createLaplacePyr
(
const
Mat
&
img
,
int
num_levels
,
std
::
vector
<
Mat
>&
pyr
);
void
createLaplacePyrGpu
(
const
Mat
&
img
,
int
num_levels
,
std
::
vector
<
Mat
>&
pyr
);
void
CV_EXPORTS
createLaplacePyrGpu
(
const
Mat
&
img
,
int
num_levels
,
std
::
vector
<
Mat
>&
pyr
);
// Restores source image
void
restoreImageFromLaplacePyr
(
std
::
vector
<
Mat
>&
pyr
);
void
CV_EXPORTS
restoreImageFromLaplacePyr
(
std
::
vector
<
Mat
>&
pyr
);
}
// namespace cv
...
...
modules/stitching/include/opencv2/stitching/camera.hpp
浏览文件 @
b0fe660d
...
...
@@ -47,7 +47,7 @@
namespace
cv
{
struct
CameraParams
struct
C
V_EXPORTS
C
ameraParams
{
CameraParams
();
CameraParams
(
const
CameraParams
&
other
);
...
...
modules/stitching/include/opencv2/stitching/exposure_compensate.hpp
浏览文件 @
b0fe660d
...
...
@@ -47,7 +47,7 @@
namespace
cv
{
class
ExposureCompensator
class
CV_EXPORTS
ExposureCompensator
{
public:
enum
{
NO
,
GAIN
,
GAIN_BLOCKS
};
...
...
@@ -61,7 +61,7 @@ public:
};
class
NoExposureCompensator
:
public
ExposureCompensator
class
CV_EXPORTS
NoExposureCompensator
:
public
ExposureCompensator
{
public:
void
feed
(
const
std
::
vector
<
Point
>
&
/*corners*/
,
const
std
::
vector
<
Mat
>
&
/*images*/
,
...
...
@@ -70,7 +70,7 @@ public:
};
class
GainCompensator
:
public
ExposureCompensator
class
CV_EXPORTS
GainCompensator
:
public
ExposureCompensator
{
public:
void
feed
(
const
std
::
vector
<
Point
>
&
corners
,
const
std
::
vector
<
Mat
>
&
images
,
...
...
@@ -83,7 +83,7 @@ private:
};
class
BlocksGainCompensator
:
public
ExposureCompensator
class
CV_EXPORTS
BlocksGainCompensator
:
public
ExposureCompensator
{
public:
BlocksGainCompensator
(
int
bl_width
=
32
,
int
bl_height
=
32
)
...
...
modules/stitching/include/opencv2/stitching/matchers.hpp
浏览文件 @
b0fe660d
...
...
@@ -48,7 +48,7 @@
namespace
cv
{
struct
ImageFeatures
struct
CV_EXPORTS
ImageFeatures
{
int
img_idx
;
cv
::
Size
img_size
;
...
...
@@ -57,7 +57,7 @@ struct ImageFeatures
};
class
FeaturesFinder
class
CV_EXPORTS
FeaturesFinder
{
public:
virtual
~
FeaturesFinder
()
{}
...
...
@@ -70,7 +70,7 @@ protected:
};
class
SurfFeaturesFinder
:
public
FeaturesFinder
class
CV_EXPORTS
SurfFeaturesFinder
:
public
FeaturesFinder
{
public:
SurfFeaturesFinder
(
bool
try_use_gpu
=
true
,
double
hess_thresh
=
300.0
,
...
...
@@ -86,7 +86,7 @@ protected:
};
struct
MatchesInfo
struct
CV_EXPORTS
MatchesInfo
{
MatchesInfo
();
MatchesInfo
(
const
MatchesInfo
&
other
);
...
...
@@ -101,7 +101,7 @@ struct MatchesInfo
};
class
FeaturesMatcher
class
CV_EXPORTS
FeaturesMatcher
{
public:
virtual
~
FeaturesMatcher
()
{}
...
...
@@ -124,7 +124,7 @@ protected:
};
class
BestOf2NearestMatcher
:
public
FeaturesMatcher
class
CV_EXPORTS
BestOf2NearestMatcher
:
public
FeaturesMatcher
{
public:
BestOf2NearestMatcher
(
bool
try_use_gpu
=
true
,
float
match_conf
=
0.55
f
,
int
num_matches_thresh1
=
6
,
...
...
modules/stitching/include/opencv2/stitching/motion_estimators.hpp
浏览文件 @
b0fe660d
...
...
@@ -50,7 +50,7 @@
namespace
cv
{
class
Estimator
class
CV_EXPORTS
Estimator
{
public:
void
operator
()(
const
std
::
vector
<
ImageFeatures
>
&
features
,
const
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
...
...
@@ -65,7 +65,7 @@ protected:
};
class
HomographyBasedEstimator
:
public
Estimator
class
CV_EXPORTS
HomographyBasedEstimator
:
public
Estimator
{
public:
HomographyBasedEstimator
()
:
is_focals_estimated_
(
false
)
{}
...
...
@@ -79,7 +79,7 @@ private:
};
class
BundleAdjuster
:
public
Estimator
class
CV_EXPORTS
BundleAdjuster
:
public
Estimator
{
public:
enum
{
NO
,
RAY_SPACE
,
FOCAL_RAY_SPACE
};
...
...
@@ -108,21 +108,21 @@ private:
};
void
waveCorrect
(
std
::
vector
<
Mat
>
&
rmats
);
void
CV_EXPORTS
waveCorrect
(
std
::
vector
<
Mat
>
&
rmats
);
//////////////////////////////////////////////////////////////////////////////
// Auxiliary functions
// Returns matches graph representation in DOT language
std
::
string
matchesGraphAsString
(
std
::
vector
<
std
::
string
>
&
pathes
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
std
::
string
CV_EXPORTS
matchesGraphAsString
(
std
::
vector
<
std
::
string
>
&
pathes
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
std
::
vector
<
int
>
leaveBiggestComponent
(
std
::
vector
<
ImageFeatures
>
&
features
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
std
::
vector
<
int
>
CV_EXPORTS
leaveBiggestComponent
(
std
::
vector
<
ImageFeatures
>
&
features
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
void
findMaxSpanningTree
(
int
num_images
,
const
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
Graph
&
span_tree
,
std
::
vector
<
int
>
&
centers
);
void
CV_EXPORTS
findMaxSpanningTree
(
int
num_images
,
const
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
Graph
&
span_tree
,
std
::
vector
<
int
>
&
centers
);
}
// namespace cv
...
...
modules/stitching/include/opencv2/stitching/seam_finders.hpp
浏览文件 @
b0fe660d
...
...
@@ -47,7 +47,7 @@
namespace
cv
{
class
SeamFinder
class
CV_EXPORTS
SeamFinder
{
public:
enum
{
NO
,
VORONOI
,
GC_COLOR
,
GC_COLOR_GRAD
};
...
...
@@ -59,14 +59,14 @@ public:
};
class
NoSeamFinder
:
public
SeamFinder
class
CV_EXPORTS
NoSeamFinder
:
public
SeamFinder
{
public:
void
find
(
const
std
::
vector
<
Mat
>&
,
const
std
::
vector
<
Point
>&
,
std
::
vector
<
Mat
>&
)
{}
};
class
PairwiseSeamFinder
:
public
SeamFinder
class
CV_EXPORTS
PairwiseSeamFinder
:
public
SeamFinder
{
public:
virtual
void
find
(
const
std
::
vector
<
Mat
>
&
src
,
const
std
::
vector
<
Point
>
&
corners
,
...
...
@@ -81,14 +81,14 @@ protected:
};
class
VoronoiSeamFinder
:
public
PairwiseSeamFinder
class
CV_EXPORTS
VoronoiSeamFinder
:
public
PairwiseSeamFinder
{
private:
void
findInPair
(
size_t
first
,
size_t
second
,
Rect
roi
);
};
class
GraphCutSeamFinder
:
public
SeamFinder
class
CV_EXPORTS
GraphCutSeamFinder
:
public
SeamFinder
{
public:
enum
{
COST_COLOR
,
COST_COLOR_GRAD
};
...
...
modules/stitching/include/opencv2/stitching/util.hpp
浏览文件 @
b0fe660d
...
...
@@ -59,7 +59,7 @@
namespace
cv
{
class
DisjointSets
class
CV_EXPORTS
DisjointSets
{
public:
DisjointSets
(
int
elem_count
=
0
)
{
createOneElemSets
(
elem_count
);
}
...
...
@@ -76,7 +76,7 @@ private:
};
struct
GraphEdge
struct
CV_EXPORTS
GraphEdge
{
GraphEdge
(
int
from
,
int
to
,
float
weight
)
:
from
(
from
),
to
(
to
),
weight
(
weight
)
{}
...
...
@@ -88,7 +88,7 @@ struct GraphEdge
};
class
Graph
class
CV_EXPORTS
Graph
{
public:
Graph
(
int
num_vertices
=
0
)
{
create
(
num_vertices
);
}
...
...
@@ -106,13 +106,13 @@ private:
//////////////////////////////////////////////////////////////////////////////
// Auxiliary functions
bool
overlapRoi
(
Point
tl1
,
Point
tl2
,
Size
sz1
,
Size
sz2
,
Rect
&
roi
);
Rect
resultRoi
(
const
std
::
vector
<
Point
>
&
corners
,
const
std
::
vector
<
Mat
>
&
images
);
Rect
resultRoi
(
const
std
::
vector
<
Point
>
&
corners
,
const
std
::
vector
<
Size
>
&
sizes
);
Point
resultTl
(
const
std
::
vector
<
Point
>
&
corners
);
bool
CV_EXPORTS
overlapRoi
(
Point
tl1
,
Point
tl2
,
Size
sz1
,
Size
sz2
,
Rect
&
roi
);
Rect
CV_EXPORTS
resultRoi
(
const
std
::
vector
<
Point
>
&
corners
,
const
std
::
vector
<
Mat
>
&
images
);
Rect
CV_EXPORTS
resultRoi
(
const
std
::
vector
<
Point
>
&
corners
,
const
std
::
vector
<
Size
>
&
sizes
);
Point
CV_EXPORTS
resultTl
(
const
std
::
vector
<
Point
>
&
corners
);
// Returns random 'count' element subset of the {0,1,...,size-1} set
void
selectRandomSubset
(
int
count
,
int
size
,
std
::
vector
<
int
>
&
subset
);
void
CV_EXPORTS
selectRandomSubset
(
int
count
,
int
size
,
std
::
vector
<
int
>
&
subset
);
}
// namespace cv
...
...
modules/stitching/include/opencv2/stitching/warpers.hpp
浏览文件 @
b0fe660d
...
...
@@ -49,7 +49,7 @@
namespace
cv
{
class
Warper
class
CV_EXPORTS
Warper
{
public:
enum
{
PLANE
,
CYLINDRICAL
,
SPHERICAL
};
...
...
@@ -62,7 +62,7 @@ public:
};
struct
ProjectorBase
struct
CV_EXPORTS
ProjectorBase
{
void
setTransformation
(
const
Mat
&
R
);
...
...
@@ -75,7 +75,7 @@ struct ProjectorBase
template
<
class
P
>
class
WarperBase
:
public
Warper
class
CV_EXPORTS
WarperBase
:
public
Warper
{
public:
virtual
Point
warp
(
const
Mat
&
src
,
float
focal
,
const
Mat
&
R
,
Mat
&
dst
,
...
...
@@ -96,7 +96,7 @@ protected:
};
struct
PlaneProjector
:
ProjectorBase
struct
CV_EXPORTS
PlaneProjector
:
ProjectorBase
{
void
mapForward
(
float
x
,
float
y
,
float
&
u
,
float
&
v
);
void
mapBackward
(
float
u
,
float
v
,
float
&
x
,
float
&
y
);
...
...
@@ -105,7 +105,7 @@ struct PlaneProjector : ProjectorBase
// Projects image onto z = plane_dist plane
class
PlaneWarper
:
public
WarperBase
<
PlaneProjector
>
class
CV_EXPORTS
PlaneWarper
:
public
WarperBase
<
PlaneProjector
>
{
public:
PlaneWarper
(
float
plane_dist
=
1.
f
,
float
scale
=
1.
f
)
...
...
@@ -119,7 +119,7 @@ protected:
};
class
PlaneWarperGpu
:
public
PlaneWarper
class
CV_EXPORTS
PlaneWarperGpu
:
public
PlaneWarper
{
public:
PlaneWarperGpu
(
float
plane_dist
=
1.
f
,
float
scale
=
1.
f
)
:
PlaneWarper
(
plane_dist
,
scale
)
{}
...
...
@@ -131,7 +131,7 @@ private:
};
struct
SphericalProjector
:
ProjectorBase
struct
CV_EXPORTS
SphericalProjector
:
ProjectorBase
{
void
mapForward
(
float
x
,
float
y
,
float
&
u
,
float
&
v
);
void
mapBackward
(
float
u
,
float
v
,
float
&
x
,
float
&
y
);
...
...
@@ -140,7 +140,7 @@ struct SphericalProjector : ProjectorBase
// Projects image onto unit sphere with origin at (0, 0, 0).
// Poles are located at (0, -1, 0) and (0, 1, 0) points.
class
SphericalWarper
:
public
WarperBase
<
SphericalProjector
>
class
CV_EXPORTS
SphericalWarper
:
public
WarperBase
<
SphericalProjector
>
{
public:
SphericalWarper
(
float
scale
=
300.
f
)
{
projector_
.
scale
=
scale
;
}
...
...
@@ -150,7 +150,7 @@ protected:
};
class
SphericalWarperGpu
:
public
SphericalWarper
class
CV_EXPORTS
SphericalWarperGpu
:
public
SphericalWarper
{
public:
SphericalWarperGpu
(
float
scale
=
300.
f
)
:
SphericalWarper
(
scale
)
{}
...
...
@@ -162,7 +162,7 @@ private:
};
struct
CylindricalProjector
:
ProjectorBase
struct
C
V_EXPORTS
C
ylindricalProjector
:
ProjectorBase
{
void
mapForward
(
float
x
,
float
y
,
float
&
u
,
float
&
v
);
void
mapBackward
(
float
u
,
float
v
,
float
&
x
,
float
&
y
);
...
...
@@ -170,7 +170,7 @@ struct CylindricalProjector : ProjectorBase
// Projects image onto x * x + z * z = 1 cylinder
class
CylindricalWarper
:
public
WarperBase
<
CylindricalProjector
>
class
C
V_EXPORTS
C
ylindricalWarper
:
public
WarperBase
<
CylindricalProjector
>
{
public:
CylindricalWarper
(
float
scale
=
300.
f
)
{
projector_
.
scale
=
scale
;
}
...
...
@@ -183,7 +183,7 @@ protected:
};
class
CylindricalWarperGpu
:
public
CylindricalWarper
class
C
V_EXPORTS
C
ylindricalWarperGpu
:
public
CylindricalWarper
{
public:
CylindricalWarperGpu
(
float
scale
=
300.
f
)
:
CylindricalWarper
(
scale
)
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录