| 209 | #endif |
| 210 | |
| 211 | static float gauss(int x, int y, float sigma_sqr) |
| 212 | { |
| 213 | float pow = expf(-((x * x + y * y) / (2.0f * sigma_sqr))); |
| 214 | float g = (1.0f / (sqrtf((float)(2.0f * M_PI * sigma_sqr)))) * pow; |
| 215 | return g; |
| 216 | } |
| 217 | |
| 218 | // size_x/y should be odd |
| 219 | void compute_gaussian_kernel(float* pDst, int size_x, int size_y, float sigma_sqr, uint32_t flags) |
no outgoing calls
no test coverage detected