X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fmoo%2Fdevice%2Fmath%2FRipplingMath.h;h=af60ac2156d22e4e80f7adbac9082094bdf82815;hb=7798b7c27cf13aaeada22faae8648df8cb339f1b;hp=655fa094a90f8d3635180d9028379703f45e9d07;hpb=b1138708dfa104f784170fcf2d50989156e5c5d0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h index 655fa09..af60ac2 100755 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h @@ -1,7 +1,7 @@ #ifndef RIPPLING_MATH_H_ #define RIPPLING_MATH_H_ -#include +#include /*----------------------------------------------------------------------*\ |* Declaration *| @@ -40,7 +40,7 @@ class RipplingMath void color(int i, int j, float t, uchar4& color) { const double dxy10 = dxy(j, i) / 10.0; - const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - t / 7.0 / 10.0) / (dxy10 + 1); + const double grayLevelFloat = 128.0 + 127.0 * cos(dxy10 - t / 7.0) / (dxy10 + 1); const uchar grayLevel = (uchar)(long(grayLevelFloat) % 256); color.x = grayLevel;