|
65 | 65 | #define __max(a,b) (((a) > (b)) ? (a) : (b))
|
66 | 66 | #endif
|
67 | 67 |
|
68 |
| -// 大小字节序判断 [ZuoW,2010/3/6] |
69 |
| -const int endian = 1; |
70 |
| -#define is_bigendian() ((*(char*)&endian)==0) |
71 |
| -#define is_littlendian() ((*(char*)&endian)==1) |
72 |
| -#define LITTLENDIAN 1 |
73 |
| - |
74 |
| -#define DEBUG // debug标示 [ZuoW,2010/5/11] |
75 |
| -#define IMAGE_LD // GCP像素坐标是左下角 [ZuoW,2010/7/4] |
76 |
| -//#define APFLOAT // 使用APFloat库进行精确计算 [ZuoW,2010/6/2] |
77 |
| - |
78 |
| -//add by dy 20080925 for DE_ABERRATION define begin |
79 |
| -/* |
80 |
| -#define MAX_ABERRATION_RANGE 6000 |
81 |
| -#define DE_ABERRATION_COEF0 5.6843e-14 |
82 |
| -#define DE_ABERRATION_COEF1 0.99913f |
83 |
| -#define DE_ABERRATION_COEF2 0.0f |
84 |
| -#define DE_ABERRATION_COEF3 8.7929e-10 |
85 |
| -#define ABERRATION_CORRECT_VALUES(value) value-MAX_ABERRATION_RANGE |
86 |
| -#define DE_ABERRATION(x) (DE_ABERRATION_COEF3*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x) \ |
87 |
| - + DE_ABERRATION_COEF2*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x) \ |
88 |
| - + DE_ABERRATION_COEF1*ABERRATION_CORRECT_VALUES(x) \ |
89 |
| - + DE_ABERRATION_COEF0 \ |
90 |
| - + MAX_ABERRATION_RANGE) |
91 |
| -#define DE_CONVERSE_ABERRATION_COEF0 4.5475e-013 |
92 |
| -#define DE_CONVERSE_ABERRATION_COEF1 1.0001f |
93 |
| -#define DE_CONVERSE_ABERRATION_COEF2 0.0f |
94 |
| -#define DE_CONVERSE_ABERRATION_COEF3 -7.8821e-010 |
95 |
| -#define DE_CONVERSE_ABERRATION(x) (DE_CONVERSE_ABERRATION_COEF3*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x) \ |
96 |
| - + DE_CONVERSE_ABERRATION_COEF2*ABERRATION_CORRECT_VALUES(x)*ABERRATION_CORRECT_VALUES(x) \ |
97 |
| - + DE_CONVERSE_ABERRATION_COEF1*ABERRATION_CORRECT_VALUES(x) \ |
98 |
| - + DE_CONVERSE_ABERRATION_COEF0 \ |
99 |
| - + MAX_ABERRATION_RANGE)*/ |
100 |
| - |
101 |
| -//add by dy 20080925 for DE_ABERRATION define end |
| 68 | +#define DEBUG |
| 69 | + |
| 70 | +//#define ONE_BAND |
| 71 | + |
102 | 72 | #endif
|
0 commit comments