diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-04-16 05:37:14 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-04-16 08:37:14 -0400 |
commit | 6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch) | |
tree | 3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/disintegration/imaging/convolution.go | |
parent | bf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff) | |
download | chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2 chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip |
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/disintegration/imaging/convolution.go')
-rw-r--r-- | vendor/github.com/disintegration/imaging/convolution.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/github.com/disintegration/imaging/convolution.go b/vendor/github.com/disintegration/imaging/convolution.go index ed7540f05..9e6404dee 100644 --- a/vendor/github.com/disintegration/imaging/convolution.go +++ b/vendor/github.com/disintegration/imaging/convolution.go @@ -58,8 +58,6 @@ func convolve(img image.Image, kernel []float64, options *ConvolveOptions) *imag m = 1 case 25: m = 2 - default: - return dst } i := 0 @@ -72,8 +70,8 @@ func convolve(img image.Image, kernel []float64, options *ConvolveOptions) *imag } } - parallel(h, func(partStart, partEnd int) { - for y := partStart; y < partEnd; y++ { + parallel(0, h, func(ys <-chan int) { + for y := range ys { for x := 0; x < w; x++ { var r, g, b float64 for _, c := range coefs { |