Browse Source

blur radius = 3 * sigma: slower but more precise

disintegration 11 years ago
parent
commit
e6153ff355
1 changed files with 1 additions and 1 deletions
  1. 1 1
      blur.go

+ 1 - 1
blur.go

@@ -30,7 +30,7 @@ func Blur(img image.Image, sigma float64) *image.NRGBA {
 	}
 
 	src := toNRGBA(img)
-	radius := int(math.Ceil(sigma * 2.0))
+	radius := int(math.Ceil(sigma * 3.0))
 	kernel := make([]float64, radius+1)
 
 	for i := 0; i <= radius; i++ {