Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
10ea580f
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,发现更多精彩内容 >>
提交
10ea580f
编写于
8月 01, 2011
作者:
A
Andrey Kamaev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Java API: Added more classes from features2d.
上级
33df5ea0
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
75 addition
and
0 deletion
+75
-0
modules/java/src/cpp/features2d_manual.hpp
modules/java/src/cpp/features2d_manual.hpp
+75
-0
未找到文件。
modules/java/src/cpp/features2d_manual.hpp
浏览文件 @
10ea580f
...
...
@@ -6,6 +6,27 @@
namespace
cv
{
class
CV_EXPORTS_AS
(
FeatureDetector
)
javaFeatureDetector
:
public
FeatureDetector
{
public:
#if 0
void detect( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
void detect( const vector<Mat>& images, vector<vector<KeyPoint> >& keypoints, const vector<Mat>& masks=vector<Mat>() ) const;
virtual void read( const FileNode& );
virtual void write( FileStorage& ) const;
virtual bool empty() const;
#endif
//supported: FAST STAR SIFT SURF ORB MSER GFTT HARRIS Grid(XXXX) Pyramid(XXXX) Dynamic(XXXX)
//not supported: SimpleBlob, Dense
CV_WRAP_AS
(
create
)
static
javaFeatureDetector
*
jcreate
(
const
string
&
detectorType
)
{
Ptr
<
FeatureDetector
>
detector
=
FeatureDetector
::
create
(
detectorType
);
detector
.
addref
();
return
(
javaFeatureDetector
*
)((
FeatureDetector
*
)
detector
);
}
};
class
CV_EXPORTS_AS
(
DescriptorMatcher
)
javaDescriptorMatcher
:
public
DescriptorMatcher
{
public:
...
...
@@ -42,6 +63,7 @@ public:
return
(
javaDescriptorMatcher
*
)((
DescriptorMatcher
*
)
matcher
);
}
//supported: FlannBased, BruteForce, BruteForce-L1, BruteForce-Hamming, BruteForce-HammingLUT
CV_WRAP_AS
(
create
)
static
javaDescriptorMatcher
*
jcreate
(
const
string
&
descriptorMatcherType
)
{
Ptr
<
DescriptorMatcher
>
matcher
=
DescriptorMatcher
::
create
(
descriptorMatcherType
);
...
...
@@ -50,6 +72,59 @@ public:
}
};
class
CV_EXPORTS_AS
(
DescriptorExtractor
)
javaDescriptorExtractor
:
public
DescriptorExtractor
{
public:
#if 0
CV_WRAP void compute( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;
CV_WRAP void compute( const vector<Mat>& images, vector<vector<KeyPoint> >& keypoints, vector<Mat>& descriptors ) const;
CV_WRAP virtual void read( const FileNode& );
CV_WRAP virtual void write( FileStorage& ) const;
CV_WRAP virtual int descriptorSize() const = 0;
CV_WRAP virtual int descriptorType() const = 0;
CV_WRAP virtual bool empty() const;
#endif
//supported SIFT, SURF, ORB, BRIEF, Opponent(XXXX)
//not supported: Calonder
CV_WRAP_AS
(
create
)
static
javaDescriptorExtractor
*
jcreate
(
const
string
&
descriptorExtractorType
)
{
Ptr
<
DescriptorExtractor
>
extractor
=
DescriptorExtractor
::
create
(
descriptorExtractorType
);
extractor
.
addref
();
return
(
javaDescriptorExtractor
*
)((
DescriptorExtractor
*
)
extractor
);
}
};
#if 0
enum
{
DRAW_OVER_OUTIMG = 1, // Output image matrix will not be created (Mat::create).
// Matches will be drawn on existing content of output image.
NOT_DRAW_SINGLE_POINTS = 2, // Single keypoints will not be drawn.
DRAW_RICH_KEYPOINTS = 4 // For each keypoint the circle around keypoint with keypoint size and
// orientation will be drawn.
};
// Draw keypoints.
CV_EXPORTS_W void drawKeypoints( const Mat& image, const vector<KeyPoint>& keypoints, Mat& outImage,
const Scalar& color=Scalar::all(-1), int flags=0 );
// Draws matches of keypints from two images on output image.
CV_EXPORTS_W void drawMatches( const Mat& img1, const vector<KeyPoint>& keypoints1,
const Mat& img2, const vector<KeyPoint>& keypoints2,
const vector<DMatch>& matches1to2, Mat& outImg,
const Scalar& matchColor=Scalar::all(-1), const Scalar& singlePointColor=Scalar::all(-1),
const vector<char>& matchesMask=vector<char>(), int flags=0 );
CV_EXPORTS_W void drawMatches( const Mat& img1, const vector<KeyPoint>& keypoints1,
const Mat& img2, const vector<KeyPoint>& keypoints2,
const vector<vector<DMatch> >& matches1to2, Mat& outImg,
const Scalar& matchColor=Scalar::all(-1), const Scalar& singlePointColor=Scalar::all(-1),
const vector<vector<char> >& matchesMask=vector<vector<char> >(), int flags=0);
#endif
}
//cv
#endif // __OPENCV_FEATURES_2D_MANUAL_HPP__
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录