Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynsimon committed Jan 31, 2017
1 parent a3f4c3c commit fe3d54b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions convolution/convolution.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func execute(img image.Image, k Matrix, bias float64, wrap, keepAlpha bool) *ima
}
}

// Map x and y indicies to non-padded range
// Map x and y indices to non-padded range
pos := (y-radiusY)*dst.Stride + (x-radiusX)*4

dst.Pix[pos+0] = uint8(math.Max(math.Min(r+bias, 255), 0))
Expand Down Expand Up @@ -119,7 +119,7 @@ func execute(img image.Image, k Matrix, bias float64, wrap, keepAlpha bool) *ima
}
}

// Map x and y indicies to non-padded range
// Map x and y indices to non-padded range
pos := (y-radiusY)*dst.Stride + (x-radiusX)*4

dst.Pix[pos+0] = uint8(math.Max(math.Min(r+bias, 255), 0))
Expand Down
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// SortRGBA sorts a slice of RGBA values.
// Parameter min and max correspond to the start and end slice indicies
// Parameter min and max correspond to the start and end slice indices
// that determine the range to be sorted.
func SortRGBA(data []color.RGBA, min, max int) {
if min > max {
Expand Down

0 comments on commit fe3d54b

Please sign in to comment.