main.h

来自「基于小波的图像配准」· C头文件 代码 · 共 32 行

H
32
字号
#define LEVELS 3

#define HAVE_LORES_TIMER
#ifdef HAVE_LORES_TIMER
/* use the low-resolution interval timer system call to collect timings */
#   define USE_TIMER
#   include <time.h>
#   include <sys/timeb.h>
#   define DECLARE_TIME(t)      struct _timeb  t
#   define GET_TIME(t)     _ftime(&t)
#   define STORE_TIME(code, t0, t1)        \
    timer_ticks[code] += ((t1).millitm < (t0).millitm) ? \
      (((t1).time - (t0).time)*1000000 - ((t0).millitm - (t1).millitm)):\
      (((t1).time - (t0).time)*1000000 + ((t1).millitm - (t0).millitm));
#endif

/* timer */
#define INITIAL_DATA          2          /* initiation of data */
#define WAVELET_TRANS         0          /* wavelet decomposition */
#define REGISTRATION          1          /* registration of all data levels */
#define INVERSE_FUNCTION      3          /* inverse function timer */
#define LEAST_MULT            4          /* least square multify  */
#define COM_BORDER            5          /* compute border time */
#define VPTIMER_COUNT         2          /* timer number */

unsigned long timer_ticks[VPTIMER_COUNT];

#include "resample.h"
#include "correlation.h"
#include "imgfile.h"
#include "registration.h"
#include "wavelet.h"

⌨️ 快捷键说明

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