00001
00030 #ifndef AR_CONFIG_H
00031 #define AR_CONFIG_H
00032
00033
00034 #ifdef _USE_DOUBLE_
00035 typedef double ARFloat;
00036 #else
00037 typedef float ARFloat;
00038 #endif
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #define AR_IMAGE_PROC_IN_FULL 0
00050 #define AR_IMAGE_PROC_IN_HALF 1
00051 #define DEFAULT_IMAGE_PROC_MODE AR_IMAGE_PROC_IN_HALF
00052
00053
00054 #define AR_FITTING_TO_IDEAL 0
00055 #define AR_FITTING_TO_INPUT 1
00056 #define DEFAULT_FITTING_MODE AR_FITTING_TO_IDEAL
00057
00058
00059 #define AR_TEMPLATE_MATCHING_COLOR 0
00060 #define AR_TEMPLATE_MATCHING_BW 1
00061 #define DEFAULT_TEMPLATE_MATCHING_MODE AR_TEMPLATE_MATCHING_COLOR
00062
00063
00064 #define AR_MATCHING_WITHOUT_PCA 0
00065 #define AR_MATCHING_WITH_PCA 1
00066 #define DEFAULT_MATCHING_PCA_MODE AR_MATCHING_WITHOUT_PCA
00067
00068
00069
00070 #define AR_GET_TRANS_MAT_MAX_LOOP_COUNT 5
00071 #define AR_GET_TRANS_MAT_MAX_FIT_ERROR 1.0
00072
00073
00074 #define AR_GET_TRANS_CONT_MAT_MAX_FIT_ERROR 1.0
00075
00076
00077
00078 #define AR_AREA_MAX 100000
00079 #define AR_AREA_MIN 70
00080
00081
00082
00083
00084
00085
00086 #define AR_CHAIN_MAX 10000
00087
00088 #define EVEC_MAX 10
00089 #define P_MAX 500
00090
00091
00092
00093 #ifdef SMALL_LUM8_TABLE
00094 #define getLUM8_from_RGB565(ptr) RGB565_to_LUM8_LUT[ (*(unsigned short*)(ptr))>>6 ]
00095 #else
00096 #define getLUM8_from_RGB565(ptr) RGB565_to_LUM8_LUT[ (*(unsigned short*)(ptr)) ]
00097 #endif //SMALL_LUM8_TABLE
00098
00099
00100 #if defined(_MSC_VER) && !defined(AR_ENABLE_MSVC_WARNINGS)
00101 #pragma warning( disable : 4244 )
00102 #pragma warning( disable : 4251 )
00103 #pragma warning( disable : 4275 )
00104 #pragma warning( disable : 4512 )
00105 #pragma warning( disable : 4267 )
00106 #pragma warning( disable : 4702 )
00107 #pragma warning( disable : 4511 )
00108 #endif
00109
00110
00111 #if defined(AR_STATIC)
00112 #define AR_EXPORT
00113 #else
00114 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
00115 # if defined( AR_LIBRARY )
00116 # define AR_EXPORT __declspec(dllexport)
00117 # else
00118 # define AR_EXPORT __declspec(dllimport)
00119 # endif
00120 #else
00121 # define AR_EXPORT
00122 #endif
00123 #endif
00124
00125 #ifdef _MSC_VER
00126 # if (_MSC_VER >= 1300)
00127 # define __STL_MEMBER_TEMPLATES
00128 # endif
00129 #endif
00130
00131 #endif // AR_CONFIG_H
00132