33 #include <ICLUtils/ICLConfig.h> 36 #define ICL_SYSTEMCALL_RM "del " 38 #define ICL_SYSTEMCALL_RM "rm -rf " 43 #pragma warning(disable: 4522; disable: 4996) 45 #define _USE_MATH_DEFINES 47 #define M_PI 3.14159265358979323846 50 #if (defined _MSC_VER && _MSC_VER < 1800) 52 inline double round(
double a)
54 return floor(a + 0.5f);
56 inline double log2(
double a)
58 return log(a) / 0.69314718055994530943;
60 inline float pow(
int a,
int b)
62 return pow((
float)a, b);
64 inline double pow(
float a,
double b)
66 return pow((
double)a, b);
68 inline int rint(
double a)
73 inline float log(
int a)
77 inline float exp(
int a)
81 inline float sqrt(
int a)
83 return sqrt((
float)a);
87 #define WARNING(msg) message(__FILE__ "(" STRINGSIZE(__LINE__) ") : warning: " #msg) 91 #ifdef ICL_SYSTEM_WINDOWS 92 # define IPP_DECL __stdcall 102 #ifdef ICLUtils_EXPORTS 103 #define ICLUtils_API __declspec(dllexport) 105 #define ICLUtils_API __declspec(dllimport) 108 #ifdef ICLMath_EXPORTS 110 #define ICLMath_API __declspec(dllexport) 112 #define ICLMath_IMP __declspec(dllimport) 113 #define ICLMath_API __declspec(dllimport) 116 #ifdef ICLCore_EXPORTS 117 #define ICLCore_API __declspec(dllexport) 119 #define ICLCore_API __declspec(dllimport) 122 #ifdef ICLFilter_EXPORTS 123 #define ICLFilter_API __declspec(dllexport) 125 #define ICLFilter_API __declspec(dllimport) 129 #define ICLIO_API __declspec(dllexport) 131 #define ICLIO_API __declspec(dllimport) 135 #define ICLIO_API __declspec(dllexport) 137 #define ICLIO_API __declspec(dllimport) 141 #define ICLCV_API __declspec(dllexport) 143 #define ICLCV_API __declspec(dllimport) 147 #define ICLQt_API __declspec(dllexport) 149 #define ICLQt_API __declspec(dllimport) 152 #ifdef ICLGeom_EXPORTS 153 #define ICLGeom_API __declspec(dllexport) 155 #define ICLGeom_API __declspec(dllimport) 158 #ifdef ICLMarkers_EXPORTS 159 #define ICLMarkers_API __declspec(dllexport) 161 #define ICLMarkers_API __declspec(dllimport) 164 #ifdef ICLPhysics_EXPORTS 165 #define ICLPhysics_API __declspec(dllexport) 167 #define ICLPhysics_API __declspec(dllimport) 175 #define ICLFilter_API 180 #define ICLMarkers_API 181 #define ICLPhysics_API 184 #ifdef ICL_HAVE_OPENGL 185 #ifdef ICL_SYSTEM_APPLE 189 #elif ICL_SYSTEM_WINDOWS ICLQt_API ImgQ sqrt(const ImgQ &image)
calls sqrt( each pixel)
ICLQt_API ImgQ exp(const ImgQ &image)
calls exp( each pixel )