资源简介
SURF是SIFT的改进版,与SIFT相比SURF基本上可以达到实时性应用的要求
代码片段和文件信息
/*
* Speeded-Up Robust Features (SURF)
* http://people.ee.ethz.ch/~surf
*
* Authors: Herbert Bay Andreas Ess Geert Willems
* Windows port by Stefan Saur
*
* Copyright (2006): ETH Zurich Switzerland
* Katholieke Universiteit Leuven Belgium
* All rights reserved.
*
* For details see the paper:
* Herbert Bay Tinne Tuytelaars Luc Van Gool
* “SURF: Speeded Up Robust Features“
* Proceedings of the ninth European Conference on Computer Vision May 2006
*
* Permission to use copy modify and distribute this software and
* its documentation for educational research and non-commercial
* purposes without fee and without a signed licensing agreement is
* hereby granted provided that the above copyright notice and this
* paragraph appear in all copies modifications and distributions.
*
* Any commercial use or any redistribution of this software
* requires a license from one of the above mentioned establishments.
*
* For further details contact Andreas Ess (aess@vision.ee.ethz.ch).
*/
#include
#include
#include “imload.h“
#include “image.h“
namespace surf {
#define MAX(xy) (((x) > (y)) ? (x) : (y))
#define MIN(xy) (((x) < (y)) ? (x) : (y))
#define ABS(x) (((x) > 0) ? (x) : (-(x)))
using namespace std;
void ignoreComments(ifstream& imfile) {
char c;
do {
imfile >> c;
} while (c == ‘ ‘);
imfile.putback(c);
imfile >> c;
while (c == ‘#‘) {
imfile.ignore(256 ‘\n‘);
imfile >> c;
}
imfile.putback(c);
}
Image *ImLoad::readImage(const char *fn){
ifstream imfile(fn ios::binary);
if (!imfile.is_open()) {
cerr << “Sorry could not open: “ << fn << endl;
exit(0);
}
// Reading file header
char P;
char num;
imfile >> P >> num;
ignoreComments(imfile);
// Read image dimensions and extremum value
int width height extr;
imfile >> width;
ignoreComments(imfile);
imfile >> height;
ignoreComments(imfile);
imfile >> extr;
// Check whether the file is OK
if (P != ‘P‘ || num != ‘5‘ ||
width <= 0 || height <= 0 ||
extr > 255) {
cerr << “Input image has to be PGM format“ << endl;
exit(0);
}
// Get the image intensities and normalise to 0 - 1.
imfile.get();
Image *im = new Image(width height);
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++)
im->setPix(x y ((double) imfile.get()) / extr);
return im;
}
void ImLoad::saveImage(const char *fn Image *im) {
ofstream imfile(fn ios::binary);
if (!imfile.is_open()) {
cerr << “Sorry could not open: “ << fn << endl;
exit(0);
}
imfile << “P5“ << endl;
imfile << im->getWidth() << “ “ << im->getHeight() << “ 255“ << endl;
for (int y = 0; y < im->getHeight(); y++)
for (int x = 0; x < im->getWidth(); x++)
imfile.put((unsigned char)(im->getPix(x y) * 255));
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 723370 2008-12-20 22:38 surf\SURF Speeded Up Robust Features.pdf
文件 1314 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\CHANGES
文件 3028 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\fasthessian.h
文件 2805 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\image.h
文件 2966 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\imload.cpp
文件 1248 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\imload.h
文件 1650 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\ipoint.h
文件 310376 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\libSurf.a
文件 269068 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\libSurf.so
文件 832 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\LICENSE
文件 9860 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\main.cpp
文件 1151 2006-12-20 16:39 surf\SURF-V1.0.9\SURF-V1.0.9\Makefile
文件 7323 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\match.cpp
文件 1627 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\os_mapping.cpp
文件 1512 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\os_mapping.h
文件 531142 2006-12-20 16:39 surf\SURF-V1.0.9\SURF-V1.0.9\out.surf
文件 1449 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\README
文件 2866 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\surf.h
文件 3764310 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\surf.ln
文件 4551 2006-12-20 17:28 surf\SURF-V1.0.9\SURF-V1.0.9\surflib.h
文件 2592902 2008-12-21 12:27 surf\surf.pdf
目录 0 2008-12-30 11:57 surf\SURF-V1.0.9\SURF-V1.0.9
目录 0 2008-12-30 11:57 surf\SURF-V1.0.9
目录 0 2008-12-30 11:58 surf
----------- --------- ---------- ----- ----
8235350 24
- 上一篇:zijoix.7z
- 下一篇:科学和工程计算基础.pdf
相关资源
- Surface Plasmons
- Opencv下利用SIFT、SURF、ORB三种特征点实
- openc基于SIFT和Surf特征的目标跟踪
- surf算法详解
- SIFT\\PCA-SIFT\\SURF论文源代码
- SIFT、SURF、ORB的区别与联系
- maxsurf中文手册
- PaintSurfaceView源码
- surfer11中文版教程
- SurfaceView放大和缩小
- 图像局部不变性特征与描述.pdf 王永明
- Curves and Surfaces for CAGD A Practical Guide
- SurfaceView碰撞检测小程序
- surface电脑win10系统修复工具
- GlSurfaceView_Camera
- LBP/HOG/SIFT/SURF特征SVM的trainAuto范例
- SURF特征检测、描述、匹配
- VS2013+opencv2.4.10提取SURF_BOW特征使用s
- surfer8安装包.rar
- SURF算法+单应矩阵+RANSAC算法实现拼接
- jdsoft surfmill 8.0 —64 精雕8.0 专业版
- Surfer10地学计算机制图
- Differential geometry curves surfaces manifold
- 基于SURF算法的图像拼接
- 基于SURF的图像配准
- 特征描述子surf,hog,光流
- 双GLSurfaceView同时显示Preview时遇到的几
- Frequency Selective Surfaces-Theory and Design
- microwave scattering and emission models and t
-
SurfaceView+MediaPla
yer视频播放器支持选
评论
共有 条评论