• 大小: 19KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: 其他
  • 标签: fast  

资源简介

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 < ysize - 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 < line_max;cache_0++ cache_1++ cache_2++)
{
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) < c_b)
                                                    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]) < c_b)
                       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......       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


评论

共有 条评论