资源简介
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 pro 7 SD卡固定硬盘X64驱动带数字
- new surface pro第5代官方最新系统家庭版
- Impact of bond order loss on surface and nanos
- The Rh influence on the surface distribution o
- Orientation-resolved 3d5/2 energy shift of Rh
- Coordination-resolved 4f binding energy shift
- Sub-wavelength surface structuring of NiTi all
- Gold-film coating assisted femtosecond laser f
- Micropackaging of Al2O3 Shell on the Surface o
- THERMAL ANNEALING TREATMENT TO ACHIEVE SWITCHA
- 中国边界BLN文件
- surf 算法论文及代码
- 角点检测与匹配
- 论文研究-基于SURF和快速近似最近邻搜
- 论文研究-基于Harris角点和SURF特征的遥
- Differential Geometry of Curves and Surfaces
-
surfaceview+mediapla
yer实现视频播放和动 - Differential Geometry of Curves and Surfaces D
-
MediaPla
yer和SurfaceView的结合使用 - Surface pro 7 SD卡固定硬盘X64驱动带数字
- 安卓相机代码
- Surfer 7 英文安装版 功能强劲 性能稳定
- SURF源码(opencv中文注释).rar
- 炫酷九宫格抽奖demo
- Surfer使用教程
- 可运行1.5.8的Bimserver版本包括插件第四
- SURF论文及源码
- SURF算法及源码详解
- SURF算法介绍
- variogramtutorial变异函数教程 surfer
评论
共有 条评论