I'm trying to implement a gaussian blur algorithm, but my weight function is returning the wrong values
float gauss(int x, int y, float sigma)
{
float gauss = 100*exp(-(pow(x,2)+pow(y,2)) / (2*pow(sigma,2))) / (pow(sigma, 2)*2*3.14159);
return gauss;
}
I did it based on this tutorial, and according to them i should get this: