Skip to content

Commit 75597bf

Browse files
author
David Thomas
committed
Fix to normalisation in blur. Thanks to @malharjajoo. Closes #6
1 parent de79960 commit 75597bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/puzzler/puzzles/gaussian_blur.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace puzzler
7676

7777
double coeff(int dx, int dy, double r) const
7878
{
79-
return exp(- (dx*dx+dy*dy) / (2*r) ) / (2 * 3.1415926535897932384626433832795 * r * r);
79+
return exp(- (dx*dx+dy*dy) / (2*r) ) / (2 * 3.1415926535897932384626433832795 * r);
8080
}
8181

8282
void ReferenceExecute(

0 commit comments

Comments
 (0)