MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / gauss

Function gauss

example_transcoding/utils.cpp:211–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209#endif
210
211static 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
219void compute_gaussian_kernel(float* pDst, int size_x, int size_y, float sigma_sqr, uint32_t flags)

Callers 1

compute_gaussian_kernelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected