⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defs.h

📁 sift特征点对应匹配算法
💻 H
字号:
/************************************************************************Demo software: Invariant keypoint matching.Author: David Lowedefs.h:This file contains the headers for a sample program to read images and  keypoints, then perform simple keypoint matching.*************************************************************************//* From the standard C libaray: */#include <stdlib.h>#include <math.h>#include <assert.h>#include <stdio.h>#include <string.h>/*------------------------------ Macros  ---------------------------------*/#define ABS(x)    (((x) > 0) ? (x) : (-(x)))#define MAX(x,y)  (((x) > (y)) ? (x) : (y))#define MIN(x,y)  (((x) < (y)) ? (x) : (y))/*---------------------------- Structures --------------------------------*//* Data structure for a float image.*/typedef struct ImageSt {  int rows, cols;          /* Dimensions of image. */  float **pixels;          /* 2D array of image pixels. */  struct ImageSt *next;    /* Pointer to next image in sequence. */} *Image;/* Data structure for a keypoint.  Lists of keypoints are linked   by the "next" field.*/typedef struct KeypointSt {  float row, col;             /* Subpixel location of keypoint. */  float scale, ori;           /* Scale and orientation (range [-PI,PI]) */  unsigned char *descrip;     /* Vector of descriptor values */  struct KeypointSt *next;    /* Pointer to next keypoint in list. */} *Keypoint;/*-------------------------- Function prototypes -------------------------*//* These are prototypes for the external functions that are shared   between files.*//* From util.c */void FatalError(char *fmt, ...);Image CreateImage(int rows, int cols);Image ReadPGMFile(char *filename);Image ReadPGM(FILE *fp);void WritePGM(FILE *fp, Image image);void DrawLine(Image image, int r1, int c1, int r2, int c2);Keypoint ReadKeyFile(char *filename);Keypoint ReadKeys(FILE *fp);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -