mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-26 21:36:24 +02:00
update all vendored dependencies
This commit is contained in:
parent
0c20cbe5b5
commit
1933f5bf1c
284 changed files with 37534 additions and 11024 deletions
2
vendor/github.com/disintegration/imaging/histogram.go
generated
vendored
2
vendor/github.com/disintegration/imaging/histogram.go
generated
vendored
|
|
@ -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++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue