diff options
Diffstat (limited to 'vendor/github.com/disintegration/imaging/histogram.go')
-rw-r--r-- | vendor/github.com/disintegration/imaging/histogram.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/disintegration/imaging/histogram.go b/vendor/github.com/disintegration/imaging/histogram.go index 3afcb7ae2..967ee6a25 100644 --- a/vendor/github.com/disintegration/imaging/histogram.go +++ b/vendor/github.com/disintegration/imaging/histogram.go @@ -28,7 +28,7 @@ func Histogram(img image.Image) [256]float64 { g := src.Pix[i+1] b := src.Pix[i+2] - var y float32 = 0.299*float32(r) + 0.587*float32(g) + 0.114*float32(b) + y := 0.299*float32(r) + 0.587*float32(g) + 0.114*float32(b) histogram[int(y+0.5)]++ total++ |