sift算法C代码详解.docx

sift算法C代码详解

#ifndef SIFT_H #define SIFT_H #include cxcore.h /******************************** Structures *********************************/ //极值点检测中用到的结构 //在SIFT特征提取过程中,此类型数据会被赋值给feature结构的feature_data成员 struct detection_data { int r; //特征点所在的行 int c; //特征点所在的列 int octv; //高斯差分金字塔中,特征点所在的组 int intvl; //高斯差分金字塔中,特征点所在的组中的层 double subintvl; //特征点在层方向(σ方向,intvl方向)上的亚像素偏移量 double scl_octv; //特征点所在的组的尺度 }; struct feature; /******************************* 一些默认参数 *****************************/ //高斯金字塔每组内的层数 #define SIFT_INTVLS 3 //第0层的初始尺度,即第0层高斯模糊所使用的参数 #define SIFT_SIGMA 1.6 //对比度阈值,针对归一化后

文档评论(0)

1亿VIP精品文档

相关文档