32 #define M_PI 3.1415926535897932384626433832795
65 float s,
int f,
float maxF,
float minF,
int a,
char* file)
86 float angle = (float)((
float)i * M_PI / (float)mAngles);
92 for ( j = 0; j <
mFreqs; j++ )
95 freq = minF + ( j * ( maxF - minF ) ) / (float)mFreqs;
99 if (file!=NULL && strlen(file)>0)
117 if (
kVerbosity ) std::cerr <<
"convoluting..." << std::endl;
122 for ( a = 0; a <
mAngles; a++ )
124 for ( f = 0; f <
mFreqs; f++ )
131 for ( gy = y; gy < y + 2 *
mRadius; gy++ )
134 if ( gy < 0 || gy >=
mHeight )
break;
140 for ( gx = x; gx < x + 2 *
mRadius; gx++ )
143 if ( gx < 0 || gx >=
mWidth )
break;
void Save(char *file, int angle, int freq)
void Filter(float **image, int *len)
void Initialize(int radius, float a, float f, float s, float p=0)
float GetReal(int x, int y)
float GetImaginary(int x, int y)
void Initialize(int y, int x, int x0, int y0, int r, float s=2.0, int f=2, float maxF=2, float minF=1, int a=8, char *file=NULL)