Small typo fix

This commit is contained in:
Endre Simo
2018-04-23 14:55:40 +03:00
parent 3dc75d470d
commit 7b5e6d53b1

View File

@@ -182,9 +182,8 @@ func (c *Carver) FindLowestEnergySeams() []Seam {
seams = append(seams, Seam{X: px, Y: c.Height - 1})
var left, middle, right float64
// Walk up in the matrix table,
// check the immediate three top pixel seam level and
// add add the one which has the lowest cumulative energy.
// Walk up in the matrix table check the immediate three top pixel seam level
// and add the one which has the lowest cumulative energy.
for y := c.Height - 2; y >= 0; y-- {
middle = c.get(px, y)
// Leftmost seam, no child to the left