91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.34MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-28
  • 語言: 其他
  • 標簽: SURF源碼??

資源簡介

SURF論文及其源碼,詳細介紹了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)?#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?<????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?<????exit(0);
??}

??//?Get?the?image?intensities?and?normalise?to?0?-?1.
??imfile.get();
??Image?*im?=?new?Image(width?height);
??for?(int?y?=?0;?y?????for?(int?x?=?0;?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?<????exit(0);
??}
??imfile?<??imfile?<getWidth()?<getHeight()?<??for?(int?y?=?0;?y?getHeight();?y++)
????for?(int?x?=?0;?x?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


評論

共有 條評論