資源簡介
fast角點檢測c實現程序,fast角點檢測適合在dsp上實現

代碼片段和文件信息
/*?Automatically?generated?code
force_first_question=0?
corner_pointers=2
*/
#include?
#include?“fast.h“
xy*?fast_corner_detect_10(const?byte*?im?int?xsize?int?ysize?int?barrier?int*?num)
{
int?boundary?=?3?y?cb?c_b;
const?byte??*line_max?*line_min;
int rsize=512?total=0;
xy ? *ret?=?(xy*)malloc(rsize*sizeof(xy));
const?byte*?cache_0;
const?byte*?cache_1;
const?byte*?cache_2;
int pixel[16];
pixel[0]?=?0?+?3?*?xsize;
pixel[1]?=?1?+?3?*?xsize;
pixel[2]?=?2?+?2?*?xsize;
pixel[3]?=?3?+?1?*?xsize;
pixel[4]?=?3?+?0?*?xsize;
pixel[5]?=?3?+?-1?*?xsize;
pixel[6]?=?2?+?-2?*?xsize;
pixel[7]?=?1?+?-3?*?xsize;
pixel[8]?=?0?+?-3?*?xsize;
pixel[9]?=?-1?+?-3?*?xsize;
pixel[10]?=?-2?+?-2?*?xsize;
pixel[11]?=?-3?+?-1?*?xsize;
pixel[12]?=?-3?+?0?*?xsize;
pixel[13]?=?-3?+?1?*?xsize;
pixel[14]?=?-2?+?2?*?xsize;
pixel[15]?=?-1?+?3?*?xsize;
for(y?=?boundary?;?y? {
cache_0?=?im?+?boundary?+?y*xsize;
line_min?=?cache_0?-?boundary;
line_max?=?im?+?xsize?-?boundary?+?y?*?xsize;
cache_1?=?cache_0?+?pixel[9];
cache_2?=?cache_0?+?pixel[3];
for(;?cache_0? {
cb?=?*cache_0?+?barrier;
c_b?=?*cache_0?-?barrier;
????????????if(*cache_1?>?cb)
????????????????if(*(cache_0?+?pixel[2])?>?cb)
????????????????????if(*(cache_0+3)?>?cb)
????????????????????????if(*(cache_0?+?pixel[6])?>?cb)
????????????????????????????if(*(cache_0?+?pixel[0])?>?cb)
????????????????????????????????if(*cache_2?>?cb)
????????????????????????????????????if(*(cache_0?+?pixel[5])?>?cb)
????????????????????????????????????????if(*(cache_1+2)?>?cb)
????????????????????????????????????????????if(*(cache_0?+?pixel[1])?>?cb)
????????????????????????????????????????????????if(*(cache_1+1)?>?cb)
????????????????????????????????????????????????????goto?success;
????????????????????????????????????????????????else?if(*(cache_1+1)?????????????????????????????????????????????????????continue;
????????????????????????????????????????????????else
????????????????????????????????????????????????????if(*(cache_0?+?pixel[14])?>?cb)
????????????????????????????????????????????????????????if(*(cache_0?+?pixel[15])?>?cb)
????????????????????????????????????????????????????????????goto?success;
????????????????????????????????????????????????????????else
????????????????????????????????????????????????????????????continue;
????????????????????????????????????????????????????else
????????????????????????????????????????????????????????continue;
????????????????????????????????????????????else?if(*(cache_0?+?pixel[1])????????????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.......???????356??2006-09-28?11:02??fast-C-src\CVS\Entries
????.......????????11??2006-09-28?10:59??fast-C-src\CVS\Repository
????.......????????26??2006-09-28?10:59??fast-C-src\CVS\Root
????.......???????594??2006-09-28?10:59??fast-C-src\fast.h
????.......????125231??2006-09-28?10:59??fast-C-src\fast_10.c
????.......?????97083??2006-09-28?10:59??fast-C-src\fast_11.c
????.......?????91221??2006-09-28?10:59??fast-C-src\fast_12.c
????.......????159501??2006-09-28?10:59??fast-C-src\fast_9.c
????.......??????1500??2006-09-28?10:59??fast-C-src\LICENSE
????.......??????4547??2006-09-28?11:01??fast-C-src\nonmax.c
????.......??????1223??2006-09-28?10:59??fast-C-src\README
?????目錄??????????0??2006-11-06?14:30??fast-C-src\CVS
?????目錄??????????0??2006-11-06?14:30??fast-C-src
-----------?---------??----------?-----??----
???????????????481511????????????????????14
評論
共有 條評論